mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Use flag secure to hide from recents
This commit is contained in:
@@ -90,8 +90,6 @@ public class FragmentBase extends Fragment {
|
||||
@Override
|
||||
public void startActivity(Intent intent) {
|
||||
try {
|
||||
if (Helper.noHistory(getContext()))
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
super.startActivity(intent);
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
Log.e(ex);
|
||||
@@ -102,8 +100,6 @@ public class FragmentBase extends Fragment {
|
||||
@Override
|
||||
public void startActivityForResult(Intent intent, int requestCode) {
|
||||
try {
|
||||
if (Helper.noHistory(getContext()))
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
|
||||
super.startActivityForResult(intent, requestCode);
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
Log.e(ex);
|
||||
|
||||
Reference in New Issue
Block a user