Merge "Merge "Allow overlays to be notified about theme changes" into sc-qpr1-dev am: 45319d558c" into sc-v2-dev

This commit is contained in:
Lucas Dupin
2021-08-21 16:53:18 +00:00
committed by Android (Google) Code Review
3 changed files with 10 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ import javax.inject.Inject
* See [DumpHandler] for more information on how and when this information is dumped.
*/
@SysUISingleton
class DumpManager @Inject constructor() {
open class DumpManager @Inject constructor() {
private val dumpables: MutableMap<String, RegisteredDumpable<Dumpable>> = ArrayMap()
private val buffers: MutableMap<String, RegisteredDumpable<LogBuffer>> = ArrayMap()

View File

@@ -25,8 +25,12 @@ import javax.inject.Inject
* Proxy to make {@link SystemProperties} easily testable.
*/
@SysUISingleton
class SystemPropertiesHelper @Inject constructor() {
open class SystemPropertiesHelper @Inject constructor() {
fun getBoolean(name: String, default: Boolean): Boolean {
return SystemProperties.getBoolean(name, default)
}
fun set(name: String, value: Int) {
SystemProperties.set(name, value.toString())
}
}

View File

@@ -530,6 +530,10 @@ public class ThemeOverlayController extends SystemUI implements Dumpable {
mThemeManager.applyCurrentUserOverlays(categoryToPackage, null, currentUser,
managedProfiles);
}
onOverlaysApplied();
}
protected void onOverlaysApplied() {
}
@Override