From eb1ed0bbd1f6381c96a22eabd9362d41c76692cf Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 1 Nov 2021 02:32:15 +0530 Subject: app: enable dynamic colors --- app/src/main/java/dev/msfjarvis/aps/Application.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/dev/msfjarvis/aps/Application.kt b/app/src/main/java/dev/msfjarvis/aps/Application.kt index bcbc699c..c0b45433 100644 --- a/app/src/main/java/dev/msfjarvis/aps/Application.kt +++ b/app/src/main/java/dev/msfjarvis/aps/Application.kt @@ -13,6 +13,7 @@ import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO import androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_YES +import com.google.android.material.color.DynamicColors import dagger.hilt.android.HiltAndroidApp import dev.msfjarvis.aps.injection.context.FilesDirPath import dev.msfjarvis.aps.injection.prefs.SettingsPreferences @@ -49,6 +50,7 @@ class Application : android.app.Application(), SharedPreferences.OnSharedPrefere setUpBouncyCastleForSshj() runMigrations(filesDirPath, prefs, gitSettings) proxyUtils.setDefaultProxy() + DynamicColors.applyToActivitiesIfAvailable(this) } override fun onTerminate() { -- cgit v1.2.3