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:
Jeff Sharkey
2013-11-13 14:30:15 -08:00
parent c21b79e22d
commit b4b28f8736
3 changed files with 10 additions and 1 deletions

View File

@@ -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>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="isAtLeastKitKat">true</bool>
</resources>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="isAtLeastKitKat">false</bool>
</resources>