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

Commit 4ff15023 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Fix custom mode icons not displayed in modes dialog

Bug: 346519570
Fix: 355409799
Test: manually tested with a test app
Flag: android.app.modes_ui
Change-Id: Ifc71dd20769dd7b5d01d6b6858a428ed56d992d1
parent 40477f9b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import android.util.LruCache;

import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import androidx.appcompat.content.res.AppCompatResources;

import com.google.common.util.concurrent.FluentFuture;
import com.google.common.util.concurrent.Futures;
@@ -104,7 +103,7 @@ public class ZenIconLoader {
                return context.getDrawable(iconResId);
            } else {
                Context appContext = context.createPackageContext(pkg, 0);
                Drawable appDrawable = AppCompatResources.getDrawable(appContext, iconResId);
                Drawable appDrawable = appContext.getDrawable(iconResId);
                return getMonochromeIconIfPresent(appDrawable);
            }
        })).catching(Exception.class, ex -> {