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

Commit 2c1177a7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix bug in DPM#setDrawable" into tm-dev am: e629b8ac

parents 0d533421 e629b8ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -141,11 +141,11 @@ class DeviceManagementResourcesProvider {
            String drawableId, String drawableSource, String drawableStyle,
            String drawableId, String drawableSource, String drawableStyle,
            ParcelableResource updatableResource) {
            ParcelableResource updatableResource) {
        synchronized (mLock) {
        synchronized (mLock) {
            Map<String, Map<String, ParcelableResource>> drawablesForId =
                    mUpdatedDrawablesForSource.get(drawableId);
            if (!mUpdatedDrawablesForSource.containsKey(drawableId)) {
            if (!mUpdatedDrawablesForSource.containsKey(drawableId)) {
                mUpdatedDrawablesForSource.put(drawableId, new HashMap<>());
                mUpdatedDrawablesForSource.put(drawableId, new HashMap<>());
            }
            }
            Map<String, Map<String, ParcelableResource>> drawablesForId =
                    mUpdatedDrawablesForSource.get(drawableId);
            if (!drawablesForId.containsKey(drawableSource)) {
            if (!drawablesForId.containsKey(drawableSource)) {
                mUpdatedDrawablesForSource.get(drawableId).put(drawableSource, new HashMap<>());
                mUpdatedDrawablesForSource.get(drawableId).put(drawableSource, new HashMap<>());
            }
            }