am 9252dbd3: Add fullscreen to Dream.lightsOut().

* commit '9252dbd314bbce75f1e57330c5a911c9f6428cf5':
  Add fullscreen to Dream.lightsOut().
This commit is contained in:
Daniel Sandler
2012-08-10 11:01:00 -07:00
committed by Android Git Automerger

View File

@@ -172,11 +172,6 @@ public class Dream extends Service implements Window.Callback {
@Override
public void onAttachedToWindow() {
mWindow.addFlags(
WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON
| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
);
lightsOut();
}
@Override
@@ -306,7 +301,8 @@ public class Dream extends Service implements Window.Callback {
// turn the lights down low
final View v = mWindow.getDecorView();
if (v != null) {
v.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
v.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE
| View.SYSTEM_UI_FLAG_FULLSCREEN);
}
}