From dee67f00fd0766ef5d690b13070244ae97016502 Mon Sep 17 00:00:00 2001 From: Andy Mast Date: Thu, 19 Mar 2015 11:55:35 -0700 Subject: 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 --- test-runner/src/android/test/mock/MockContext.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test-runner/src') 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(); } -- cgit v1.1