示例#1
0
 @Override
 public void onOptionsMenuClosed(Menu menu) {
   super.onOptionsMenuClosed(menu);
   final ZLAndroidApplication application = (ZLAndroidApplication) getApplication();
   if (!application.ShowStatusBarOption.getValue()
       && application.ShowStatusBarWhenMenuIsActiveOption.getValue()) {
     getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
   }
 }
示例#2
0
 @Override
 public boolean onPrepareOptionsMenu(Menu menu) {
   final ZLAndroidApplication application = (ZLAndroidApplication) getApplication();
   if (!application.ShowStatusBarOption.getValue()
       && application.ShowStatusBarWhenMenuIsActiveOption.getValue()) {
     getWindow().addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
   }
   return super.onPrepareOptionsMenu(menu);
 }