summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/GLRoot.java1
-rw-r--r--src/com/android/gallery3d/ui/GLRootView.java6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/GLRoot.java b/src/com/android/gallery3d/ui/GLRoot.java
index f4b7572a7..1651b4361 100644
--- a/src/com/android/gallery3d/ui/GLRoot.java
+++ b/src/com/android/gallery3d/ui/GLRoot.java
@@ -44,4 +44,5 @@ public interface GLRoot {
public Matrix getCompensationMatrix();
public void freeze();
public void unfreeze();
+ public void setLightsOutMode(boolean enabled);
}
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java
index 73e982509..987e9a2ae 100644
--- a/src/com/android/gallery3d/ui/GLRootView.java
+++ b/src/com/android/gallery3d/ui/GLRootView.java
@@ -512,6 +512,12 @@ public class GLRootView extends GLSurfaceView
mRenderLock.unlock();
}
+ @Override
+ public void setLightsOutMode(boolean enabled) {
+ int flags = enabled ? SYSTEM_UI_FLAG_LOW_PROFILE : 0;
+ setSystemUiVisibility(flags);
+ }
+
// We need to unfreeze in the following methods and in onPause().
// These methods will wait on GLThread. If we have freezed the GLRootView,
// the GLThread will wait on main thread to call unfreeze and cause dead