From 9e2a69886db785729f9c7925e6c06b8ad283d49e Mon Sep 17 00:00:00 2001 From: d34d Date: Tue, 3 Mar 2015 10:36:43 -0800 Subject: Themes: Add RequestType to ThemeChangeRequest [1/3] Change-Id: I2c65ca8eebb3347873cbb133fc29d5ade75b258b --- services/java/com/android/server/AppsFailureReceiver.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'services/java') diff --git a/services/java/com/android/server/AppsFailureReceiver.java b/services/java/com/android/server/AppsFailureReceiver.java index 3265720..e99b7a4 100644 --- a/services/java/com/android/server/AppsFailureReceiver.java +++ b/services/java/com/android/server/AppsFailureReceiver.java @@ -23,13 +23,10 @@ import android.content.Context; import android.content.Intent; import android.content.pm.ThemeUtils; import android.content.res.ThemeChangeRequest; +import android.content.res.ThemeChangeRequest.RequestType; import android.content.res.ThemeConfig; import android.content.res.ThemeManager; import android.os.SystemClock; -import android.provider.ThemesContract; - -import java.util.ArrayList; -import java.util.List; import com.android.internal.R; @@ -77,7 +74,8 @@ public class AppsFailureReceiver extends BroadcastReceiver { .setLockWallpaper(themePkgName) .setAlarm(themePkgName) .setNotification(themePkgName) - .setRingtone(themePkgName); + .setRingtone(themePkgName) + .setRequestType(RequestType.THEME_RESET); // Since we are resetting everything to the system theme, we can have the // theme service remove all per app themes without setting them explicitly :) tm.requestThemeChange(builder.build(), true); -- cgit v1.1