Merge "Properly generate systemUiVisibilityChanged callbacks." into ics-factoryrom

This commit is contained in:
Daniel Sandler
2011-09-22 10:29:33 -07:00
committed by Android (Google) Code Review

View File

@@ -2031,8 +2031,13 @@ public class PhoneStatusBar extends StatusBar {
// The user is not allowed to get stuck without navigation UI. Upon the slightest user // The user is not allowed to get stuck without navigation UI. Upon the slightest user
// interaction we bring the navigation back. // interaction we bring the navigation back.
public void userActivity() { public void userActivity() {
if (mNavigationBarView != null) { if (0 != (mSystemUiVisibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)) {
mNavigationBarView.setHidden(false); try {
mBarService.setSystemUiVisibility(
mSystemUiVisibility & ~View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
} catch (RemoteException ex) {
// weep softly
}
} }
} }