Fix package change broadcast receiving
This commit is contained in:
parent
1a9f86dc9d
commit
a456a9b8d9
@ -76,14 +76,13 @@
|
||||
<category android:name="android.intent.category.HOME" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<receiver android:name="PackageReceiver" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.PACKAGE_ADDED" />
|
||||
<action android:name="android.intent.action.PACKAGE_UPGRADED" />
|
||||
<action android:name="android.intent.action.PACKAGE_REMOVED" />
|
||||
|
||||
<category android:name="android.intent.category.HOME" />
|
||||
<data android:scheme="package" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
|
@ -21,11 +21,13 @@ package org.fdroid.fdroid;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
public class PackageReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context ctx, Intent intent) {
|
||||
Log.d("FDroid", "PackageReciever invalidating apps");
|
||||
((FDroidApp) ctx.getApplicationContext()).invalidateApps();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user