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:
parent
4c8410af15
commit
5d18216a7c
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue