diff options
author | Adam Copp <adamcopp@google.com> | 2012-09-06 15:27:17 +0100 |
---|---|---|
committer | Adam Copp <adamcopp@google.com> | 2012-09-06 16:02:29 +0100 |
commit | 4cf71b468e321dd8e775065ff8d9b8474b863aff (patch) | |
tree | 7a74a19521557c2e82520849fbde9e0e25fb0f3f /photoviewer | |
parent | 762df274f96d6e4e176b0ee212fc2b508b5f247c (diff) | |
download | android_frameworks_ex-4cf71b468e321dd8e775065ff8d9b8474b863aff.tar.gz android_frameworks_ex-4cf71b468e321dd8e775065ff8d9b8474b863aff.tar.bz2 android_frameworks_ex-4cf71b468e321dd8e775065ff8d9b8474b863aff.zip |
Fix double-tap to restore from fullscreen
After auto-hiding the actionbar, two taps must be made to restore
the action bar.
this change fixes that by calling setFullScreen instead of just changing
lights out mode. This correctly updates the mFullScreen variable and
means only one tap is required to restore the action bar.
Bug: 7117697
Change-Id: I8645ca77c2f025868c487c2c63e7057d696d6dac
Diffstat (limited to 'photoviewer')
-rw-r--r-- | photoviewer/src/com/android/ex/photo/PhotoViewActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java index ff3eb4c..26a6399 100644 --- a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java +++ b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java @@ -474,7 +474,7 @@ public class PhotoViewActivity extends Activity implements private Runnable mActionBarHideRunnable = new Runnable() { @Override public void run() { - PhotoViewActivity.this.setLightsOutMode(true); + setFullScreen(true, true); } }; |