Example usage for android.view Display isValid

List of usage examples for android.view Display isValid

Introduction

In this page you can find the example usage for android.view Display isValid.

Prototype

public boolean isValid() 

Source Link

Document

Returns true if this display is still valid, false if the display has been removed.

Usage

From source file:org.acra.collector.DisplayManagerCollector.java

@NonNull
private static String collectIsValid(@NonNull Display display) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
        return display.getDisplayId() + ".isValid=" + display.isValid() + '\n';
    }/*from  w w w .j av  a  2 s  .co m*/
    return "";
}

From source file:me.wimanacra.collector.DisplayManagerCollector.java

private static void collectIsValid(@NonNull Display display, JSONObject container) throws JSONException {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
        container.put("isValid", display.isValid());
    }//from w  w  w.j a va2s .co  m
}