@Override public void startActivity(Intent intent) { if (!TaskUtil.isMoveTaskToBack(this, intent)) intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION); super.startActivity(intent); }
@Override public void startActivityForResult(Intent intent, int requestCode) { if (!TaskUtil.isMoveTaskToBack(this, intent)) intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION); super.startActivityForResult(intent, requestCode); }