Explorar o código

exit app will go system hom

hanjing %!s(int64=7) %!d(string=hai) anos
pai
achega
dfe932e783

+ 4 - 0
app/src/main/java/com/sheep/gamegroup/view/activity/ActMain.java

@@ -292,6 +292,10 @@ public class ActMain extends BaseActYmPermissionCheck {
             }
             }
             transaction.commitAllowingStateLoss();
             transaction.commitAllowingStateLoss();
             releaseInputMethodRefView();
             releaseInputMethodRefView();
+            Intent intent = new Intent();
+            intent.setAction(Intent.ACTION_MAIN);// "android.intent.action.MAIN"
+            intent.addCategory(Intent.CATEGORY_HOME); //"android.intent.category.HOME"
+            startActivity(intent);
             SheepApp.getInstance().quit();
             SheepApp.getInstance().quit();
             finish();
             finish();
         } else {
         } else {