diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-08-18 17:38:20 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-08-18 21:14:02 -0700 |
commit | 4eb407a832b7d6a2d62a535e5cab70b00a0bc8ed (patch) | |
tree | a4f0280d903b2a3ff7fba71f5641822c4e476335 /packages/DocumentsUI/res | |
parent | 58514937628dfcf3b2949e4cbc45d5526ecb8019 (diff) | |
download | frameworks_base-4eb407a832b7d6a2d62a535e5cab70b00a0bc8ed.zip frameworks_base-4eb407a832b7d6a2d62a535e5cab70b00a0bc8ed.tar.gz frameworks_base-4eb407a832b7d6a2d62a535e5cab70b00a0bc8ed.tar.bz2 |
Management actions, invalidate caches.
In manage mode, touching launches a VIEW intent for the file. Also
adds actions for sharing and deleting.
Move roots and thumbnail caches into Application object, and flush
cache when thumbnail size changes. Listen for package changes and
broadcasts that should invalidate our roots cache.
Pick default grid/list mode based on provider hint.
Bug: 10329983, 10330210, 10378834, 10330069
Change-Id: I75afb1c58ab71bb9d55852b1059da7257a376248
Diffstat (limited to 'packages/DocumentsUI/res')
-rw-r--r-- | packages/DocumentsUI/res/menu/mode_directory.xml | 10 | ||||
-rw-r--r-- | packages/DocumentsUI/res/values/strings.xml | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/packages/DocumentsUI/res/menu/mode_directory.xml b/packages/DocumentsUI/res/menu/mode_directory.xml index 6b6d7e9..624e024 100644 --- a/packages/DocumentsUI/res/menu/mode_directory.xml +++ b/packages/DocumentsUI/res/menu/mode_directory.xml @@ -19,4 +19,14 @@ android:id="@+id/menu_open" android:title="@string/menu_open" android:showAsAction="always" /> + <item + android:id="@+id/menu_share" + android:icon="@android:drawable/ic_menu_share" + android:title="@string/menu_share" + android:showAsAction="always" /> + <item + android:id="@+id/menu_delete" + android:icon="@android:drawable/ic_menu_delete" + android:title="@string/menu_delete" + android:showAsAction="always" /> </menu> diff --git a/packages/DocumentsUI/res/values/strings.xml b/packages/DocumentsUI/res/values/strings.xml index 760f99b..2b83183 100644 --- a/packages/DocumentsUI/res/values/strings.xml +++ b/packages/DocumentsUI/res/values/strings.xml @@ -29,6 +29,8 @@ <string name="menu_open">Open</string> <string name="menu_save">Save</string> + <string name="menu_share">Share</string> + <string name="menu_delete">Delete</string> <string name="mode_selected_count"><xliff:g id="count" example="3">%1$d</xliff:g> selected</string> @@ -55,4 +57,7 @@ <string name="empty">No items</string> + <string name="toast_no_application">Can\'t open file</string> + <string name="toast_failed_delete">Unable to delete some documents</string> + </resources> |