예제 #1
0
 @Override
 public void startActivity(Intent intent) {
   if (!TaskUtil.isMoveTaskToBack(this, intent))
     intent.addFlags(Intent.FLAG_ACTIVITY_NO_USER_ACTION);
   super.startActivity(intent);
 }
예제 #2
0
 @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);
 }