Fix bug with user of shortcut not being remembered over restart.
Intent extra was being set as int rather than long so being missed. Also use LauncherApps if neccessary in case where launching without launch animation. Unregister for package notifications when terminating. Bug: 14636181 Change-Id: I1575f6eed806446782092dffe8c01afe7b6507fe
This commit is contained in:
1 parent
2e7db96278
commit
1317e2dd4a
3 files changed
+20
-15
No files matched your search
@@ -114,7 +114,7 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {
|
||||
resolver.registerContentObserver(LauncherSettings.Favorites.CONTENT_URI, true,
|
||||
mFavoritesObserver);
|
||||
}
|
||||
|
||||
|
||||
public void recreateWidgetPreviewDb() {
|
||||
if (mWidgetPreviewCacheDb != null) {
|
||||
mWidgetPreviewCacheDb.close();
|
||||
@@ -127,6 +127,8 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {
|
||||
*/
|
||||
public void onTerminate() {
|
||||
sContext.unregisterReceiver(mModel);
|
||||
final LauncherAppsCompat launcherApps = LauncherAppsCompat.getInstance(sContext);
|
||||
launcherApps.removeOnAppsChangedListener(mModel);
|
||||
|
||||
ContentResolver resolver = sContext.getContentResolver();
|
||||
resolver.unregisterContentObserver(mFavoritesObserver);
|
||||
|
||||
Reference in new issue
Block a user