mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Activity manager context
This commit is contained in:
@@ -1229,7 +1229,7 @@ public class Helper {
|
||||
|
||||
static void excludeFromRecents(Context context) {
|
||||
try {
|
||||
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
ActivityManager am = Helper.getSystemService(context, ActivityManager.class);;
|
||||
if (am == null)
|
||||
return;
|
||||
|
||||
@@ -2667,7 +2667,7 @@ public class Helper {
|
||||
}
|
||||
|
||||
static void clearAll(Context context) {
|
||||
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
ActivityManager am = Helper.getSystemService(context, ActivityManager.class);;
|
||||
am.clearApplicationUserData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user