@Override public void onBackPressed() { if (mResideMenu.isOpened()) { mResideMenu.closeMenu(); } else { if (SettingsHelper.getInstance().isExitAppPrompt() == false) { runInBackgroud(); } else { doubleClickExit(); } } }
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); } } }