1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-27 18:30:09 +00:00

Remove access notification upon uninstall

This commit is contained in:
M66B 2016-02-25 08:55:39 +01:00
parent 4c8410af15
commit 5d18216a7c

View file

@ -67,8 +67,10 @@ public class Receiver extends BroadcastReceiver {
context.getSharedPreferences("roaming", Context.MODE_PRIVATE).edit().remove(packageName).apply(); context.getSharedPreferences("roaming", Context.MODE_PRIVATE).edit().remove(packageName).apply();
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
if (uid > 0) if (uid > 0) {
NotificationManagerCompat.from(context).cancel(uid); NotificationManagerCompat.from(context).cancel(uid); // installed notification
NotificationManagerCompat.from(context).cancel(uid + 10000); // access notification
}
} }
} else { } else {