mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user