Merge "Remove handler for searchables changed broadcast." into ub-launcher3-burnaby
This commit is contained in:
@@ -4101,7 +4101,7 @@ public class Launcher extends Activity
|
|||||||
return mDeviceProfile.getSearchBarBounds(Utilities.isRtl(getResources()));
|
return mDeviceProfile.getSearchBarBounds(Utilities.isRtl(getResources()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void bindSearchablesChanged() {
|
public void bindSearchProviderChanged() {
|
||||||
if (mSearchDropTargetBar == null) {
|
if (mSearchDropTargetBar == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ public class LauncherAppState {
|
|||||||
IntentFilter filter = new IntentFilter();
|
IntentFilter filter = new IntentFilter();
|
||||||
filter.addAction(Intent.ACTION_LOCALE_CHANGED);
|
filter.addAction(Intent.ACTION_LOCALE_CHANGED);
|
||||||
filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED);
|
filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED);
|
||||||
filter.addAction(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED);
|
|
||||||
// For handling managed profiles
|
// For handling managed profiles
|
||||||
filter.addAction(LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED);
|
filter.addAction(LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED);
|
||||||
filter.addAction(LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED);
|
filter.addAction(LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED);
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ public class LauncherModel extends BroadcastReceiver
|
|||||||
public void bindComponentsRemoved(ArrayList<String> packageNames,
|
public void bindComponentsRemoved(ArrayList<String> packageNames,
|
||||||
ArrayList<AppInfo> appInfos, UserHandleCompat user, int reason);
|
ArrayList<AppInfo> appInfos, UserHandleCompat user, int reason);
|
||||||
public void bindAllPackages(WidgetsModel model);
|
public void bindAllPackages(WidgetsModel model);
|
||||||
public void bindSearchablesChanged();
|
public void bindSearchProviderChanged();
|
||||||
public boolean isAllAppsButtonRank(int rank);
|
public boolean isAllAppsButtonRank(int rank);
|
||||||
public void onPageBoundSynchronously(int page);
|
public void onPageBoundSynchronously(int page);
|
||||||
public void dumpLogsToLocalData();
|
public void dumpLogsToLocalData();
|
||||||
@@ -1281,11 +1281,10 @@ public class LauncherModel extends BroadcastReceiver
|
|||||||
if (Intent.ACTION_LOCALE_CHANGED.equals(action)) {
|
if (Intent.ACTION_LOCALE_CHANGED.equals(action)) {
|
||||||
// If we have changed locale we need to clear out the labels in all apps/workspace.
|
// If we have changed locale we need to clear out the labels in all apps/workspace.
|
||||||
forceReload();
|
forceReload();
|
||||||
} else if (SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED.equals(action) ||
|
} else if (SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED.equals(action)) {
|
||||||
SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED.equals(action)) {
|
|
||||||
Callbacks callbacks = getCallback();
|
Callbacks callbacks = getCallback();
|
||||||
if (callbacks != null) {
|
if (callbacks != null) {
|
||||||
callbacks.bindSearchablesChanged();
|
callbacks.bindSearchProviderChanged();
|
||||||
}
|
}
|
||||||
} else if (LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED.equals(action)
|
} else if (LauncherAppsCompat.ACTION_MANAGED_PROFILE_ADDED.equals(action)
|
||||||
|| LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED.equals(action)) {
|
|| LauncherAppsCompat.ACTION_MANAGED_PROFILE_REMOVED.equals(action)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user