* commit 'f652b2178458faaea431bceded58a0656084292c': Only enable VaultProvider on KitKat devices.
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
android:authorities="com.example.android.vault.provider"
|
android:authorities="com.example.android.vault.provider"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:grantUriPermissions="true"
|
android:grantUriPermissions="true"
|
||||||
android:permission="android.permission.MANAGE_DOCUMENTS">
|
android:permission="android.permission.MANAGE_DOCUMENTS"
|
||||||
|
android:enabled="@bool/isAtLeastKitKat">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
|
||||||
</intent-filter>
|
</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