|
|
@@ -281,11 +281,6 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
}
|
|
|
changeVisible(lastPosition, position);
|
|
|
lastPosition = position;
|
|
|
- if (position == 2 || position == 4) {
|
|
|
- setSystemUiVisibility(false);
|
|
|
- } else {
|
|
|
- setSystemUiVisibility(true);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
private void changeVisible(int lastPosition, int position) {
|
|
|
@@ -313,16 +308,16 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
*/
|
|
|
private void doBackPress() {
|
|
|
if (System.currentTimeMillis() - mLastBackTime < 1000) {
|
|
|
- List<Fragment> fragmentList = getSupportFragmentManager().getFragments();
|
|
|
- FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
|
|
- for (Fragment fragment : fragmentList) {
|
|
|
- try {
|
|
|
- transaction.remove(fragment);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- transaction.commitAllowingStateLoss();
|
|
|
+// List<Fragment> fragmentList = getSupportFragmentManager().getFragments();
|
|
|
+// FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
|
|
|
+// for (Fragment fragment : fragmentList) {
|
|
|
+// try {
|
|
|
+// transaction.remove(fragment);
|
|
|
+// } catch (Exception e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// transaction.commitAllowingStateLoss();
|
|
|
releaseInputMethodRefView();
|
|
|
Intent intent = new Intent();
|
|
|
intent.setAction(Intent.ACTION_MAIN);// "android.intent.action.MAIN"
|