mirror of
https://github.com/Katana-Official/SPatch-Update.git
synced 2026-03-25 05:59:46 +08:00
First commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.android.launcher2;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
public class PackageChangedReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
public void onReceive(final Context context, Intent intent) {
|
||||
final String packageName = intent.getData().getSchemeSpecificPart();
|
||||
|
||||
if (packageName == null || packageName.length() == 0) {
|
||||
// they sent us a bad intent
|
||||
return;
|
||||
}
|
||||
LauncherApplication app = (LauncherApplication) context.getApplicationContext();
|
||||
WidgetPreviewLoader.removeFromDb(app.getWidgetPreviewCacheDb(), packageName);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user