Listen for ACTION_CONFIGURATION_CHANGED for an mcc change to reload AllApps

Bug 5040470

Reload all apps in Launcher on ACTION_CONFIGURATION_CHANGED
if the config change was due to an mcc change. App icon labels
such as Gmail/GoogleMail may have mcc-based resources so must be
reloaded if the mcc has changed.

Change-Id: I02e48f9cebb73950cc563a902df850ae0db0a98f
This commit is contained in:
Reena Lee
2011-09-23 17:20:28 -07:00
committed by Michael Jurka
parent 6029d75e75
commit 93f824ac2f
2 changed files with 62 additions and 25 deletions

View File

@@ -58,6 +58,7 @@ public class LauncherApplication extends Application {
filter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
filter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE);
filter.addAction(Intent.ACTION_LOCALE_CHANGED);
filter.addAction(Intent.ACTION_CONFIGURATION_CHANGED);
registerReceiver(mModel, filter);
filter = new IntentFilter();
filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED);