Remove DayNight themes from public API (again)
Bug: 22628106 Change-Id: Id55c9e626813c70671a93aedf8b1e0cdaed45ec1
This commit is contained in:
@@ -141,6 +141,14 @@ public final class SystemServer {
|
||||
"com.android.server.MountService$Lifecycle";
|
||||
private static final String PERSISTENT_DATA_BLOCK_PROP = "ro.frp.pst";
|
||||
|
||||
/**
|
||||
* Default theme used by the system context. This is used to style
|
||||
* system-provided dialogs, such as the Power Off dialog, and other
|
||||
* visual content.
|
||||
*/
|
||||
private static final int DEFAULT_SYSTEM_THEME =
|
||||
com.android.internal.R.style.Theme_Material_DayNight_DarkActionBar;
|
||||
|
||||
private final int mFactoryTestMode;
|
||||
private Timer mProfilerSnapshotTimer;
|
||||
|
||||
@@ -320,7 +328,7 @@ public final class SystemServer {
|
||||
private void createSystemContext() {
|
||||
ActivityThread activityThread = ActivityThread.systemMain();
|
||||
mSystemContext = activityThread.getSystemContext();
|
||||
mSystemContext.setTheme(android.R.style.Theme_Material_DayNight_DarkActionBar);
|
||||
mSystemContext.setTheme(DEFAULT_SYSTEM_THEME);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user