Loading packages/SystemUI/AndroidManifest.xml +5 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,11 @@ android:label="@string/app_label" android:icon="@*android:drawable/platlogo" android:process="com.android.systemui" android:supportsRtl="true"> android:supportsRtl="true" android:theme="@style/systemui_theme"> <!-- Keep theme in sync with SystemUIApplication.onCreate(). Setting the theme on the application does not affect views inflated by services. The application theme is set again from onCreate to take effect for those views. --> <!-- Broadcast receiver that gets the broadcast at boot time and starts up everything else. Loading packages/SystemUI/res/values/styles.xml +3 −1 Original line number Diff line number Diff line Loading @@ -170,4 +170,6 @@ <item name="android:textSize">14dp</item> </style> <style name="systemui_theme" parent="@android:style/Theme.DeviceDefault" /> </resources> packages/SystemUI/src/com/android/systemui/SystemUIApplication.java +9 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,15 @@ public class SystemUIApplication extends Application { private boolean mServicesStarted; private final Map<Class<?>, Object> mComponents = new HashMap<Class<?>, Object>(); @Override public void onCreate() { super.onCreate(); // Set the application theme that is inherited by all services. Note that setting the // application theme in the manifest does only work for activities. Keep this in sync with // the theme set there. setTheme(R.style.systemui_theme); } /** * Makes sure that all the SystemUI services are running. If they are already running, this is a * no-op. This is needed to conditinally start all the services, as we only need to have it in Loading Loading
packages/SystemUI/AndroidManifest.xml +5 −1 Original line number Diff line number Diff line Loading @@ -110,7 +110,11 @@ android:label="@string/app_label" android:icon="@*android:drawable/platlogo" android:process="com.android.systemui" android:supportsRtl="true"> android:supportsRtl="true" android:theme="@style/systemui_theme"> <!-- Keep theme in sync with SystemUIApplication.onCreate(). Setting the theme on the application does not affect views inflated by services. The application theme is set again from onCreate to take effect for those views. --> <!-- Broadcast receiver that gets the broadcast at boot time and starts up everything else. Loading
packages/SystemUI/res/values/styles.xml +3 −1 Original line number Diff line number Diff line Loading @@ -170,4 +170,6 @@ <item name="android:textSize">14dp</item> </style> <style name="systemui_theme" parent="@android:style/Theme.DeviceDefault" /> </resources>
packages/SystemUI/src/com/android/systemui/SystemUIApplication.java +9 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,15 @@ public class SystemUIApplication extends Application { private boolean mServicesStarted; private final Map<Class<?>, Object> mComponents = new HashMap<Class<?>, Object>(); @Override public void onCreate() { super.onCreate(); // Set the application theme that is inherited by all services. Note that setting the // application theme in the manifest does only work for activities. Keep this in sync with // the theme set there. setTheme(R.style.systemui_theme); } /** * Makes sure that all the SystemUI services are running. If they are already running, this is a * no-op. This is needed to conditinally start all the services, as we only need to have it in Loading