Fix crash when package list is updated

bug# 5224498

Change-Id: I8953589c21e97fee3f5c3b95fb4a46beb39562b3
This commit is contained in:
Michael Jurka
2011-08-29 11:24:45 -07:00
parent 3359793e96
commit ec9788e681
+5 -3
View File
@@ -605,9 +605,11 @@ public class LauncherModel extends BroadcastReceiver {
startLoaderFromBackground();
} else if (SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED.equals(action) ||
SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED.equals(action)) {
Callbacks callbacks = mCallbacks.get();
if (callbacks != null) {
callbacks.bindSearchablesChanged();
if (mCallbacks != null) {
Callbacks callbacks = mCallbacks.get();
if (callbacks != null) {
callbacks.bindSearchablesChanged();
}
}
}
}