Only enable VaultProvider on KitKat devices.
Otherwise the app would crash when starting on pre-KK devices missing the parent class. Bug: 11670294 Change-Id: I6fc843ba9d525265a4aaad6e8896a3e66d577d1f
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
android:authorities="com.example.android.vault.provider"
|
||||
android:exported="true"
|
||||
android:grantUriPermissions="true"
|
||||
android:permission="android.permission.MANAGE_DOCUMENTS">
|
||||
android:permission="android.permission.MANAGE_DOCUMENTS"
|
||||
android:enabled="@bool/isAtLeastKitKat">
|
||||
<intent-filter>
|
||||
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
||||
</intent-filter>
|
||||
|
||||
4
samples/Vault/res/values-v19/bool.xml
Normal file
4
samples/Vault/res/values-v19/bool.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="isAtLeastKitKat">true</bool>
|
||||
</resources>
|
||||
4
samples/Vault/res/values/bool.xml
Normal file
4
samples/Vault/res/values/bool.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<bool name="isAtLeastKitKat">false</bool>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user