Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2cca29a3 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 26711 into eclair

* changes:
  Fix widget stopListening NPE.
parents e6bea600 e21167a9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -473,10 +473,12 @@ class AppWidgetService extends IAppWidgetService.Stub
    public void stopListening(int hostId) {
        synchronized (mAppWidgetIds) {
            Host host = lookupHostLocked(getCallingUid(), hostId);
            if (host != null) {
                host.callbacks = null;
                pruneHostLocked(host);
            }
        }
    }

    boolean canAccessAppWidgetId(AppWidgetId id, int callingUid) {
        if (id.host.uid == callingUid) {