Shows as a faux dialog on larger tablets, since the normal dialog themes from framework don't support action bars. Instead, this hacks itself to look like a dialog with an InsetDrawable. Detects touches in dim area to dismiss dialog. Show all action bar icons on tablets, and roots panel is always visible with a different shadow. Show settings in dialog. Allow mode switches in recents. Bug: 10329832 Change-Id: Id02982ce7b0d4694962d32f8d5286fdfcc207208
69 lines
3.0 KiB
XML
69 lines
3.0 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.documentsui">
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
|
|
|
|
<application
|
|
android:name=".DocumentsApplication"
|
|
android:label="@string/app_label"
|
|
android:supportsRtl="true">
|
|
|
|
<!-- TODO: allow rotation when state saving is in better shape -->
|
|
<activity
|
|
android:name=".DocumentsActivity"
|
|
android:theme="@style/Theme">
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.OPEN_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.CREATE_DOCUMENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter android:priority="100">
|
|
<action android:name="android.intent.action.GET_CONTENT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.OPENABLE" />
|
|
<data android:mimeType="*/*" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.provider.action.MANAGE_ROOT" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<data android:mimeType="vnd.android.document/root" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".SettingsActivity"
|
|
android:label="@string/menu_settings"
|
|
android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge"
|
|
android:exported="false" />
|
|
|
|
<provider
|
|
android:name=".RecentsProvider"
|
|
android:authorities="com.android.documentsui.recents"
|
|
android:exported="false" />
|
|
|
|
<receiver android:name=".DocumentChangedReceiver">
|
|
<intent-filter>
|
|
<action android:name="android.provider.action.DOCUMENT_CHANGED" />
|
|
<data android:mimeType="vnd.android.cursor.dir/root" />
|
|
<data android:mimeType="vnd.android.cursor.item/root" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<!-- TODO: remove when we have real clients -->
|
|
<activity android:name=".TestActivity" android:enabled="false">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
</application>
|
|
</manifest>
|