From: Owen Lin Date: Tue, 19 Jun 2012 06:35:06 +0000 (+0800) Subject: Make SystemUI always consists with the contrller overlay. X-Git-Tag: android-x86-6.0-r3~68^2~28^2~213^2~19^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~428^2~2^2~1536^2~7^2~7^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0b4e90974bb2f171ec3b684c10d8b9c4d97afbde;p=android-x86%2Fpackages-apps-Camera2.git Make SystemUI always consists with the contrller overlay. Change-Id: I81f2a71fd38fc2588a9acb97b9d333978ffb5e48 fix: 6679875 --- diff --git a/src/com/android/gallery3d/app/MoviePlayer.java b/src/com/android/gallery3d/app/MoviePlayer.java index 13a77f472..11b40bdf8 100644 --- a/src/com/android/gallery3d/app/MoviePlayer.java +++ b/src/com/android/gallery3d/app/MoviePlayer.java @@ -86,9 +86,6 @@ public class MoviePlayer implements // If the time bar is visible. private boolean mShowing; - // Control when system UI can be shown - private boolean mAllowShowingSystemUI; - private final Runnable mPlayingChecker = new Runnable() { @Override public void run() { @@ -162,7 +159,6 @@ public class MoviePlayer implements mLastSystemUiVis = visibility; if ((diff & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) != 0 && (visibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0) { - mAllowShowingSystemUI = true; mController.show(); // We need to set the background to clear ghosting images @@ -371,12 +367,7 @@ public class MoviePlayer implements public void onShown() { mShowing = true; setProgress(); - - // System UI is invisible by default until the flag is set by user interaction - // See VideoView's onSystemUiVisibilityChange listener for details. - if (mAllowShowingSystemUI) { - showSystemUi(true); - } + showSystemUi(true); } @Override diff --git a/src/com/android/gallery3d/app/TimeBar.java b/src/com/android/gallery3d/app/TimeBar.java index 1f5bfd96b..1f3630622 100644 --- a/src/com/android/gallery3d/app/TimeBar.java +++ b/src/com/android/gallery3d/app/TimeBar.java @@ -255,6 +255,7 @@ public class TimeBar extends View { return true; } break; + case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_UP: if (scrubbing) { listener.onScrubbingEnd(getScrubberTime());