Created
February 8, 2015 08:53
-
-
Save PomepuyN/db67516349330ad9c988 to your computer and use it in GitHub Desktop.
Gear Live issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DisplayManager.DisplayListener displayListener = new DisplayManager.DisplayListener() { | |
@Override | |
public void onDisplayAdded(int displayId) { | |
} | |
@Override | |
public void onDisplayRemoved(int displayId) { | |
} | |
@Override | |
public void onDisplayChanged(int displayId) { | |
try { | |
Log.d(TAG, "onDisplayChanged " + displayManager.getDisplay(displayId).getState()); | |
} catch (NullPointerException ignored) { | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment