XPerience-AOSP/android_frameworks_base — pull request #11 by Klozz (2014-07-16 06:16:07+00:00)
Title: Themes: Support applying components from multiple themes [1/3]

The current implementation assumes the components being passed
into the ThemeService belong to the same theme. This patch uses
a Map instead of a List to pass in a mapping of components to
package names, allowing us to apply several components from
different themes.

Requesting a theme change now takes a Map which
maps components to the theme package name they will be applied
from.
Example:
Map componentMap = new HashMap();
componentMap.add(ThemesColumns.MODIFIES_ICONS, "com.mytheme.blue");
componentMap.add(ThemesColumns.MODIFIES_OVERLAYS, "com.mytheme.red");

ThemeManager tm = (ThemeManager) contex.getSystemService(Context.THEME_SERVICE);
tm.requestThemeChange(componentMap);

Change-Id: I13fa17eabecb824884fe522d5dc1822a4d7c55f4

Conflicts:
services/java/com/android/server/ThemeService.java