A few little tweaks to system ui flag demos.

Change-Id: Ib4c3b45e8d67200a2b4f3a8b0daee198b24bad0f
This commit is contained in:
Dianne Hackborn
2012-05-18 19:43:57 -07:00
parent 285ee4b3b0
commit 58ce6f06a1
3 changed files with 5 additions and 4 deletions

View File

@@ -147,6 +147,7 @@ public class VideoPlayerActivity extends Activity
void setPlayPaused(boolean paused) {
mPaused = paused;
mPlayButton.setText(paused ? R.string.play : R.string.pause);
setKeepScreenOn(!paused);
setNavVisibility(true);
}
@@ -166,7 +167,7 @@ public class VideoPlayerActivity extends Activity
h.removeCallbacks(mNavHider);
if (!mMenusOpen && !mPaused) {
// If the menus are open or play is paused, we will not auto-hide.
h.postDelayed(mNavHider, 3000);
h.postDelayed(mNavHider, 1500);
}
}
}