summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2015-09-02 18:55:13 -0700
committerSteve Kondik <steve@cyngn.com>2016-08-03 15:44:39 -0700
commitbc536293434457995d900aeb27709ccdce417228 (patch)
treedddfcde2c549b74f3d850850991ae841cc492a8e
parente039354291dcd7284af986d85c2f8fec45921f75 (diff)
downloadandroid_packages_apps_Snap-bc536293434457995d900aeb27709ccdce417228.zip
android_packages_apps_Snap-bc536293434457995d900aeb27709ccdce417228.tar.gz
android_packages_apps_Snap-bc536293434457995d900aeb27709ccdce417228.tar.bz2
SnapdragonCamera: Reset navigation bar state whenever screen turns on
Reset navigation bar state whenever screen turns on Change-Id: Ic1021322e33cf116706c533edaac0f28396fa631 CRs-Fixed: 887673
-rw-r--r--src/com/android/camera/CameraActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java
index 0064a0e..b2705e2 100644
--- a/src/com/android/camera/CameraActivity.java
+++ b/src/com/android/camera/CameraActivity.java
@@ -1672,6 +1672,13 @@ public class CameraActivity extends Activity
}
@Override
+ public void onWindowFocusChanged(boolean focus) {
+ // Hide action bar first since we are in full screen mode first, and
+ // switch the system UI to lights-out mode.
+ if (focus) this.setSystemBarsVisibility(false);
+ }
+
+ @Override
public void onResume() {
UsageStatistics.onEvent(UsageStatistics.COMPONENT_CAMERA,
UsageStatistics.ACTION_FOREGROUNDED, this.getClass().getSimpleName());