diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2012-06-29 08:19:39 -0700 |
---|---|---|
committer | Pin Ting <pinting@google.com> | 2012-07-02 23:49:00 -0700 |
commit | ce8b4485801843c14abc3654e57aad96d1364e49 (patch) | |
tree | 5945b9f8975afaf5e519676e4656aaec016238af /src/com/android/gallery3d/ui | |
parent | fdbf964798ea6d8a55295ddef49be005f076cfde (diff) | |
download | android_packages_apps_Snap-ce8b4485801843c14abc3654e57aad96d1364e49.tar.gz android_packages_apps_Snap-ce8b4485801843c14abc3654e57aad96d1364e49.tar.bz2 android_packages_apps_Snap-ce8b4485801843c14abc3654e57aad96d1364e49.zip |
Avoid using View.SYSTEM_UI_FLAG_LOW_PROFILE.
Use View.STATUS_BAR_HIDDEN instead.
Bug:6706727
Change-Id: I0324a251b10eba11350f1813ee975d493bbcfafa
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r-- | src/com/android/gallery3d/ui/GLRootView.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/ui/GLRootView.java b/src/com/android/gallery3d/ui/GLRootView.java index 478cb4f87..401ca59eb 100644 --- a/src/com/android/gallery3d/ui/GLRootView.java +++ b/src/com/android/gallery3d/ui/GLRootView.java @@ -84,9 +84,6 @@ public class GLRootView extends GLSurfaceView private Matrix mCompensationMatrix = new Matrix(); private int mDisplayRotation; - // The value which will become mCompensation in next layout. - private int mPendingCompensation; - private int mFlags = FLAG_NEED_LAYOUT; private volatile boolean mRenderRequested = false; @@ -333,6 +330,7 @@ public class GLRootView extends GLSurfaceView if (mFirstDraw) { mFirstDraw = false; post(new Runnable() { + @Override public void run() { View root = getRootView(); View cover = root.findViewById(R.id.gl_root_cover); @@ -542,7 +540,7 @@ public class GLRootView extends GLSurfaceView public void setLightsOutMode(boolean enabled) { int flags = 0; if (enabled) { - flags = SYSTEM_UI_FLAG_LOW_PROFILE; + flags = STATUS_BAR_HIDDEN; if (ApiHelper.HAS_VIEW_SYSTEM_UI_FLAG_LAYOUT_STABLE) { flags |= (SYSTEM_UI_FLAG_FULLSCREEN | SYSTEM_UI_FLAG_LAYOUT_STABLE); } |