am fc324ddf: am 2f2864b7: am 3dd06d90: Merge "Restored widget provider id not properly updated." into lmp-dev
* commit 'fc324ddf0593b21694b7fcf315c6da607ff38805': Restored widget provider id not properly updated.
This commit is contained in:
@@ -1839,13 +1839,14 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
|
|||||||
// If the provider was not found it may be because it was restored and
|
// If the provider was not found it may be because it was restored and
|
||||||
// we did not know its UID so let us find if there is such one.
|
// we did not know its UID so let us find if there is such one.
|
||||||
if (existing == null) {
|
if (existing == null) {
|
||||||
providerId = new ProviderId(UNKNOWN_UID, componentName);
|
ProviderId restoredProviderId = new ProviderId(UNKNOWN_UID, componentName);
|
||||||
existing = lookupProviderLocked(providerId);
|
existing = lookupProviderLocked(restoredProviderId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (existing != null) {
|
if (existing != null) {
|
||||||
if (existing.zombie && !mSafeMode) {
|
if (existing.zombie && !mSafeMode) {
|
||||||
// it's a placeholder that was set up during an app restore
|
// it's a placeholder that was set up during an app restore
|
||||||
|
existing.id = providerId;
|
||||||
existing.zombie = false;
|
existing.zombie = false;
|
||||||
existing.info = provider.info; // the real one filled out from the ResolveInfo
|
existing.info = provider.info; // the real one filled out from the ResolveInfo
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user