/**
     * This method registers a display listener for JB MR1 and higher to workaround a Android
     * deficiency with regard to 180 degree landscape rotation. See {@link DisplayChangeListener}
     * documentation for more information.
     */
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)
    private void registerDisplayListener() {
        final DisplayManager displayManager =
                (DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
        final Handler handler = new Handler(Looper.getMainLooper());
        displayManager.registerDisplayListener(mDisplayListener, handler);
    }
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)
private void registerDisplayListener() {
final DisplayManager displayManager =
(DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
final Handler handler = new Handler(Looper.getMainLooper());
displayManager.registerDisplayListener(mDisplayListener, handler);
}
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)
private void registerDisplayListener() {
final DisplayManager displayManager =
(DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
final Handler handler = new Handler(Looper.getMainLooper());
displayManager.registerDisplayListener(mDisplayListener, handler);
}
@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN_MR1)
private void registerDisplayListener() {
final DisplayManager displayManager =
(DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
final Handler handler = new Handler(Looper.getMainLooper());
displayManager.registerDisplayListener(mDisplayListener, handler);
}