From cf1eee71f0f911e2da3c625e68bf4223630fc008 Mon Sep 17 00:00:00 2001 From: Bryan Mawhinney Date: Fri, 5 Apr 2019 17:25:47 +0100 Subject: [PATCH] Allow themeing of icon in SuspendedAppActivity By passing the current theme to getDrawable, we allow the suspending app to provide, e.g., a vector drawable tinted according to the system theme (note, *not* the suspending app theme). Test: manual Bug: 129995419 Change-Id: Id9d4e3292baa324856dd817fe9ac979c07339fb0 --- core/java/com/android/internal/app/SuspendedAppActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/com/android/internal/app/SuspendedAppActivity.java b/core/java/com/android/internal/app/SuspendedAppActivity.java index 70935d4ac0769..712774a12cdfc 100644 --- a/core/java/com/android/internal/app/SuspendedAppActivity.java +++ b/core/java/com/android/internal/app/SuspendedAppActivity.java @@ -79,7 +79,7 @@ public class SuspendedAppActivity extends AlertActivity : ID_NULL; if (iconId != ID_NULL && mSuspendingAppResources != null) { try { - return mSuspendingAppResources.getDrawable(iconId, null); + return mSuspendingAppResources.getDrawable(iconId, getTheme()); } catch (Resources.NotFoundException nfe) { Slog.e(TAG, "Could not resolve drawable resource id " + iconId); }