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

Commit aef103de authored by kholoud mohamed's avatar kholoud mohamed
Browse files

Fix bug in DPM#setDrawable

Fixes: 229265302
Test: atest android.devicepolicy.cts.DevicePolicyResourcesTests
Change-Id: Ida6e72565733c717243a2ffc83b6b5975a9b5a3b
parent 8e542793
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -141,11 +141,11 @@ class DeviceManagementResourcesProvider {
            String drawableId, String drawableSource, String drawableStyle,
            ParcelableResource updatableResource) {
        synchronized (mLock) {
            Map<String, Map<String, ParcelableResource>> drawablesForId =
                    mUpdatedDrawablesForSource.get(drawableId);
            if (!mUpdatedDrawablesForSource.containsKey(drawableId)) {
                mUpdatedDrawablesForSource.put(drawableId, new HashMap<>());
            }
            Map<String, Map<String, ParcelableResource>> drawablesForId =
                    mUpdatedDrawablesForSource.get(drawableId);
            if (!drawablesForId.containsKey(drawableSource)) {
                mUpdatedDrawablesForSource.get(drawableId).put(drawableSource, new HashMap<>());
            }