mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 00:36:49 +00:00
We were using multiple SQLiteOpenHelpers, which causes problems; this change switches us to using only one Bug: 8346109 Change-Id: If7d4dff3d34edb38d9586d3b0f4e8e1747a71a75
20 lines
678 B
Java
20 lines
678 B
Java
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);
|
|
}
|
|
}
|