summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/ActivityThread.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/app/ActivityThread.java')
-rw-r--r--core/java/android/app/ActivityThread.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index d4f2db6..82cf23e 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -3175,7 +3175,7 @@ public final class ActivityThread {
// We removed the old resources object from the mActiveResources
// cache, now we need to trigger an update for each application.
if ((diff & ActivityInfo.CONFIG_THEME_RESOURCE) != 0) {
- if (cb instanceof Activity || cb instanceof Application) {
+ if (cb instanceof ContextWrapper) {
Context context = ((ContextWrapper)cb).getBaseContext();
if (context instanceof ContextImpl) {
((ContextImpl)context).refreshResourcesIfNecessary();