aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-11-01 02:32:15 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-11-03 15:07:00 +0530
commiteb1ed0bbd1f6381c96a22eabd9362d41c76692cf (patch)
treeba3c6eac527f7a3d997c4f14335f089cacbcceb4 /app
parent2ee48cdab665c45659cd9f4dcc32b1042a0b7f6c (diff)
app: enable dynamic colors
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/dev/msfjarvis/aps/Application.kt2
1 files changed, 2 insertions, 0 deletions
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() {