am 2dbe444e: Merge "Properly generate systemUiVisibilityChanged callbacks." into ics-factoryrom
* commit '2dbe444e5dd89b83829df6a3f48c491a844ecd28': Properly generate systemUiVisibilityChanged callbacks.
This commit is contained in:
@@ -2031,8 +2031,13 @@ public class PhoneStatusBar extends StatusBar {
|
||||
// The user is not allowed to get stuck without navigation UI. Upon the slightest user
|
||||
// interaction we bring the navigation back.
|
||||
public void userActivity() {
|
||||
if (mNavigationBarView != null) {
|
||||
mNavigationBarView.setHidden(false);
|
||||
if (0 != (mSystemUiVisibility & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION)) {
|
||||
try {
|
||||
mBarService.setSystemUiVisibility(
|
||||
mSystemUiVisibility & ~View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
|
||||
} catch (RemoteException ex) {
|
||||
// weep softly
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user