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

@@ -64,7 +64,14 @@ public class FragmentBase extends Fragment {
@Override
public void startActivity(Intent intent) {
Helper.startActivity(getContext(), intent);
try {
if (Helper.hasAuthentication(getContext()))
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
super.startActivity(intent);
} catch (ActivityNotFoundException ex) {
Log.e(ex);
ToastEx.makeText(getContext(), getString(R.string.title_no_viewer, intent.getAction()), Toast.LENGTH_LONG).show();
}
}
@Override