1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-24 15:21:19 +00:00

Fixed package cache timing problem

Refs #378
This commit is contained in:
M66B 2016-03-20 08:11:39 +01:00
parent b0adcb5728
commit a2c9d6ca09
2 changed files with 1 additions and 2 deletions

View file

@ -46,8 +46,6 @@ public class Receiver extends BroadcastReceiver {
if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
// Application added
Rule.clearCache(context);
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
// Show notification
if (IAB.isPurchased(ActivityPro.SKU_NOTIFY, context)) {

View file

@ -1598,6 +1598,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
public void onReceive(Context context, Intent intent) {
Log.i(TAG, "Received " + intent);
Util.logExtras(intent);
Rule.clearCache(ServiceSinkhole.this);
reload("package added", ServiceSinkhole.this);
}
};