Merge "[ActivityManager] Ensure provider external access count will be released."

This commit is contained in:
Craig Mautner
2014-12-01 00:20:33 +00:00
committed by Gerrit Code Review

View File

@@ -10054,10 +10054,9 @@ public final class ActivityManagerService extends ActivityManagerNative
} finally { } finally {
// Ensure that whatever happens, we clean up the identity state // Ensure that whatever happens, we clean up the identity state
sCallerIdentity.remove(); sCallerIdentity.remove();
// Ensure we're done with the provider.
removeContentProviderExternalUnchecked(name, null, userId);
} }
// We've got the fd now, so we're done with the provider.
removeContentProviderExternalUnchecked(name, null, userId);
} else { } else {
Slog.d(TAG, "Failed to get provider for authority '" + name + "'"); Slog.d(TAG, "Failed to get provider for authority '" + name + "'");
} }