apply DynamicColors when available
This commit is contained in:
parent
ea5c34ed52
commit
8a308b69e5
@ -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" />
|
||||||
|
13
app/src/main/java/app/grapheneos/pdfviewer/App.kt
Normal file
13
app/src/main/java/app/grapheneos/pdfviewer/App.kt
Normal 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)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user