diff options
author | Andy Mast <andy@cyngn.com> | 2015-03-19 11:55:35 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2015-10-27 18:00:57 -0700 |
commit | dee67f00fd0766ef5d690b13070244ae97016502 (patch) | |
tree | df6efc71d9efb374b8b80c132bbe0290c6f641ac /core/java/android/content/Context.java | |
parent | c06da0e983e97a6b08d395d7c709b536dc4f8f0a (diff) | |
download | frameworks_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 'core/java/android/content/Context.java')
-rw-r--r-- | core/java/android/content/Context.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index cd3df9b..1692920 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -497,6 +497,9 @@ public abstract class Context { @ViewDebug.ExportedProperty(deepExport = true) public abstract Resources.Theme getTheme(); + /** @hide */ + public abstract void recreateTheme(); + /** * Retrieve styled attribute information in this Context's theme. See * {@link android.content.res.Resources.Theme#obtainStyledAttributes(int[])} |