From bfdb297ca463b4bdb25912e71e49a0450ff8150d Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Sun, 13 Oct 2024 16:30:05 +0530 Subject: [PATCH] storage: demo: Inherit M3 theme Signed-off-by: Aayush Gupta --- storage/demo/src/main/java/de/grobox/storagebackuptester/App.kt | 2 ++ storage/demo/src/main/res/values-night/themes.xml | 2 +- storage/demo/src/main/res/values/themes.xml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/demo/src/main/java/de/grobox/storagebackuptester/App.kt b/storage/demo/src/main/java/de/grobox/storagebackuptester/App.kt index da045dca..1cd46e13 100644 --- a/storage/demo/src/main/java/de/grobox/storagebackuptester/App.kt +++ b/storage/demo/src/main/java/de/grobox/storagebackuptester/App.kt @@ -9,6 +9,7 @@ import android.app.Application import android.os.StrictMode import android.os.StrictMode.VmPolicy import android.util.Log +import com.google.android.material.color.DynamicColors import de.grobox.storagebackuptester.crypto.KeyManager import de.grobox.storagebackuptester.plugin.TestSafBackend import de.grobox.storagebackuptester.settings.SettingsManager @@ -26,6 +27,7 @@ class App : Application() { override fun onCreate() { super.onCreate() + DynamicColors.applyToActivitiesIfAvailable(this) StrictMode.setThreadPolicy( StrictMode.ThreadPolicy.Builder() .detectAll() diff --git a/storage/demo/src/main/res/values-night/themes.xml b/storage/demo/src/main/res/values-night/themes.xml index a28b5932..c3c9d946 100644 --- a/storage/demo/src/main/res/values-night/themes.xml +++ b/storage/demo/src/main/res/values-night/themes.xml @@ -4,7 +4,7 @@ --> -