예제 #1
0
 @Override
 public void onBackPressed() {
   if (mResideMenu.isOpened()) {
     mResideMenu.closeMenu();
   } else {
     if (SettingsHelper.getInstance().isExitAppPrompt() == false) {
       runInBackgroud();
     } else {
       doubleClickExit();
     }
   }
 }
예제 #2
0
 private void enterMenu() {
   if (mResideMenu.isOpened()) {
     mResideMenu.closeMenu();
   } else {
     MenuPositionMode menuPositionMode = SettingsHelper.getInstance().getMenuPositionMode();
     if (menuPositionMode == MenuPositionMode.RIGHT) {
       mResideMenu.openMenu(ResideMenu.DIRECTION_RIGHT);
     } else {
       mResideMenu.openMenu(ResideMenu.DIRECTION_LEFT);
     }
   }
 }