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">
<original-package android:name="org.grapheneos.pdfviewer" />
<application android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
<application
android:name=".App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:allowBackup="true">
<activity android:name=".PdfViewer"
android:roundIcon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
<activity
android:name=".PdfViewer"
android:exported="true">
<intent-filter>
<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)
}
}