apply DynamicColors when available

This commit is contained in:
Pratyush 2022-05-12 14:51:30 +05:30 committed by Daniel Micay
parent ea5c34ed52
commit 8a308b69e5
2 changed files with 21 additions and 5 deletions

View File

@ -3,12 +3,15 @@
android:targetSandboxVersion="2"> android:targetSandboxVersion="2">
<original-package android:name="org.grapheneos.pdfviewer" /> <original-package android:name="org.grapheneos.pdfviewer" />
<application android:icon="@mipmap/ic_launcher" <application
android:roundIcon="@mipmap/ic_launcher" android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/AppTheme" android:roundIcon="@mipmap/ic_launcher"
android:allowBackup="true"> android:theme="@style/AppTheme">
<activity android:name=".PdfViewer" <activity
android:name=".PdfViewer"
android:exported="true"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />

View File

@ -0,0 +1,13 @@
package app.grapheneos.pdfviewer
import android.app.Application
import com.google.android.material.color.DynamicColors
class App : Application() {
override fun onCreate() {
super.onCreate()
DynamicColors.applyToActivitiesIfAvailable(this)
}
}