summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorAndy Mast <andy@cyngn.com>2015-03-19 11:55:35 -0700
committerClark Scheff <clark@cyngn.com>2015-10-27 18:00:57 -0700
commitdee67f00fd0766ef5d690b13070244ae97016502 (patch)
treedf6efc71d9efb374b8b80c132bbe0290c6f641ac /test-runner
parentc06da0e983e97a6b08d395d7c709b536dc4f8f0a (diff)
downloadframeworks_base-dee67f00fd0766ef5d690b13070244ae97016502.zip
frameworks_base-dee67f00fd0766ef5d690b13070244ae97016502.tar.gz
frameworks_base-dee67f00fd0766ef5d690b13070244ae97016502.tar.bz2
Clear Theme in System UI
When SystemUI first starts an android theme object is created which contains references to the currently applied CM theme. When the theme is changed to system, the theme remains in memory with old references to the prior applied theme. (See mPackages in ResTable::Theme) This patch introduces a recreate theme method into Context so that SystemUI can recreate its own theme object. Change-Id: I086a76afa6f456a69c0390573bc8af2eafa4fb4e
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/src/android/test/mock/MockContext.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/test-runner/src/android/test/mock/MockContext.java b/test-runner/src/android/test/mock/MockContext.java
index b1b4d04..602cdc9 100644
--- a/test-runner/src/android/test/mock/MockContext.java
+++ b/test-runner/src/android/test/mock/MockContext.java
@@ -99,6 +99,11 @@ public class MockContext extends Context {
}
@Override
+ public void recreateTheme() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
public ClassLoader getClassLoader() {
throw new UnsupportedOperationException();
}