mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 09:48:46 +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();
|
||||
|
||||
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
|
||||
if (uid > 0)
|
||||
NotificationManagerCompat.from(context).cancel(uid);
|
||||
if (uid > 0) {
|
||||
NotificationManagerCompat.from(context).cancel(uid); // installed notification
|
||||
NotificationManagerCompat.from(context).cancel(uid + 10000); // access notification
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue