Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d3b062d authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Merge "Allow overlays to be notified about theme changes" into...

Merge "Merge "Allow overlays to be notified about theme changes" into sc-qpr1-dev am: 45319d55" into sc-v2-dev
parents a58f6be7 51efd9ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ import javax.inject.Inject
 * See [DumpHandler] for more information on how and when this information is dumped.
 * See [DumpHandler] for more information on how and when this information is dumped.
 */
 */
@SysUISingleton
@SysUISingleton
class DumpManager @Inject constructor() {
open class DumpManager @Inject constructor() {
    private val dumpables: MutableMap<String, RegisteredDumpable<Dumpable>> = ArrayMap()
    private val dumpables: MutableMap<String, RegisteredDumpable<Dumpable>> = ArrayMap()
    private val buffers: MutableMap<String, RegisteredDumpable<LogBuffer>> = ArrayMap()
    private val buffers: MutableMap<String, RegisteredDumpable<LogBuffer>> = ArrayMap()


+5 −1
Original line number Original line Diff line number Diff line
@@ -25,8 +25,12 @@ import javax.inject.Inject
 * Proxy to make {@link SystemProperties} easily testable.
 * Proxy to make {@link SystemProperties} easily testable.
 */
 */
@SysUISingleton
@SysUISingleton
class SystemPropertiesHelper @Inject constructor() {
open class SystemPropertiesHelper @Inject constructor() {
    fun getBoolean(name: String, default: Boolean): Boolean {
    fun getBoolean(name: String, default: Boolean): Boolean {
        return SystemProperties.getBoolean(name, default)
        return SystemProperties.getBoolean(name, default)
    }
    }

    fun set(name: String, value: Int) {
        SystemProperties.set(name, value.toString())
    }
}
}
 No newline at end of file
+4 −0
Original line number Original line Diff line number Diff line
@@ -530,6 +530,10 @@ public class ThemeOverlayController extends SystemUI implements Dumpable {
            mThemeManager.applyCurrentUserOverlays(categoryToPackage, null, currentUser,
            mThemeManager.applyCurrentUserOverlays(categoryToPackage, null, currentUser,
                    managedProfiles);
                    managedProfiles);
        }
        }
        onOverlaysApplied();
    }

    protected void onOverlaysApplied() {
    }
    }


    @Override
    @Override