- if (visible) {
- hideSystemUI(mFullScreenAnchorView);
- //actionBar.hide(); // propagated through OnSystemUiVisibilityChangeListener()
- } else {
- showSystemUI(mFullScreenAnchorView);
- //actionBar.show(); // propagated through OnSystemUiVisibilityChangeListener()
- }
- /*
- if (mFullScreen) {
- actionBar.show();
-
+ boolean visible = (mFullScreenAnchorView.getSystemUiVisibility() & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0;
+
+ if (visible) {
+ hideSystemUI(mFullScreenAnchorView);
+ // actionBar.hide(); // propagated through
+ // OnSystemUiVisibilityChangeListener()
+ } else {
+ showSystemUI(mFullScreenAnchorView);
+ // actionBar.show(); // propagated through
+ // OnSystemUiVisibilityChangeListener()
+ }
+