Revert "Always exclude from recents"

This reverts commit f7b1f3348a.
This commit is contained in:
M66B
2019-09-09 14:58:31 +02:00
parent f7b1f3348a
commit 93e20b7228
14 changed files with 64 additions and 62 deletions

View File

@@ -199,7 +199,14 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
@Override
public void startActivity(Intent intent) {
Helper.startActivity(this, intent);
try {
if (Helper.hasAuthentication(this))
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
super.startActivity(intent);
} catch (ActivityNotFoundException ex) {
Log.e(ex);
ToastEx.makeText(this, getString(R.string.title_no_viewer, intent.getAction()), Toast.LENGTH_LONG).show();
}
}
@Override