target API 31

API 31 requires intents to set android:exported true or false

Signed-off-by: June <zanthed@riseup.net>
This commit is contained in:
June 2021-09-29 09:37:16 -04:00 committed by Daniel Micay
parent a8fcbf6404
commit 90b2b5f989
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ android {
defaultConfig { defaultConfig {
applicationId "org.grapheneos.pdfviewer" applicationId "org.grapheneos.pdfviewer"
minSdkVersion 26 minSdkVersion 26
targetSdkVersion 30 targetSdkVersion 31
versionCode 6 versionCode 6
versionName versionCode.toString() versionName versionCode.toString()
resConfigs "en" resConfigs "en"

View File

@ -8,7 +8,8 @@
android:theme="@style/AppTheme" android:theme="@style/AppTheme"
android:allowBackup="true"> android:allowBackup="true">
<activity android:name=".PdfViewer" <activity android:name=".PdfViewer"
android:label="@string/app_name"> android:label="@string/app_name"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />