mirror of
https://github.com/M66B/NetGuard.git
synced 2025-03-15 08:29:02 +00:00
Clear cache on application update
This commit is contained in:
parent
7ccfea4d76
commit
ab66ed889c
1 changed files with 3 additions and 4 deletions
|
@ -46,9 +46,9 @@ public class Receiver extends BroadcastReceiver {
|
|||
|
||||
if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
|
||||
// Application added
|
||||
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
|
||||
Rule.clearCache(context);
|
||||
Rule.clearCache(context);
|
||||
|
||||
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
|
||||
// Show notification
|
||||
if (IAB.isPurchased(ActivityPro.SKU_NOTIFY, context)) {
|
||||
int uid = intent.getIntExtra(Intent.EXTRA_UID, -1);
|
||||
|
@ -58,8 +58,7 @@ public class Receiver extends BroadcastReceiver {
|
|||
|
||||
} else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())) {
|
||||
// Application removed
|
||||
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false))
|
||||
Rule.clearCache(context);
|
||||
Rule.clearCache(context);
|
||||
|
||||
if (intent.getBooleanExtra(Intent.EXTRA_DATA_REMOVED, false)) {
|
||||
// Remove settings
|
||||
|
|
Loading…
Add table
Reference in a new issue