Loading packages/DocumentsUI/res/menu/mode_directory.xml +4 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,8 @@ android:icon="@drawable/ic_menu_delete" android:title="@string/menu_delete" android:showAsAction="always" /> <item android:id="@+id/menu_select_all" android:title="@string/menu_select_all" android:showAsAction="never" /> </menu> packages/DocumentsUI/res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ <string name="menu_delete">Delete</string> <!-- Menu item title that selects the current directory [CHAR LIMIT=48] --> <string name="menu_select">Select \"<xliff:g id="directory" example="My Directory">^1</xliff:g>\"</string> <!-- Menu item title that selects all documents in the current directory [CHAR LIMIT=24] --> <string name="menu_select_all">Select All</string> <!-- Menu item that reveals internal storage built into the device [CHAR LIMIT=24] --> <string name="menu_advanced_show" product="nosdcard">Show internal storage</string> Loading packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java +8 −0 Original line number Diff line number Diff line Loading @@ -501,6 +501,14 @@ public class DirectoryFragment extends Fragment { mode.finish(); return true; } else if (id == R.id.menu_select_all) { int count = mCurrentView.getCount(); for (int i = 0; i < count; i++) { mCurrentView.setItemChecked(i, true); } updateDisplayState(); return true; } else { return false; } Loading Loading
packages/DocumentsUI/res/menu/mode_directory.xml +4 −0 Original line number Diff line number Diff line Loading @@ -29,4 +29,8 @@ android:icon="@drawable/ic_menu_delete" android:title="@string/menu_delete" android:showAsAction="always" /> <item android:id="@+id/menu_select_all" android:title="@string/menu_select_all" android:showAsAction="never" /> </menu>
packages/DocumentsUI/res/values/strings.xml +2 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,8 @@ <string name="menu_delete">Delete</string> <!-- Menu item title that selects the current directory [CHAR LIMIT=48] --> <string name="menu_select">Select \"<xliff:g id="directory" example="My Directory">^1</xliff:g>\"</string> <!-- Menu item title that selects all documents in the current directory [CHAR LIMIT=24] --> <string name="menu_select_all">Select All</string> <!-- Menu item that reveals internal storage built into the device [CHAR LIMIT=24] --> <string name="menu_advanced_show" product="nosdcard">Show internal storage</string> Loading
packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java +8 −0 Original line number Diff line number Diff line Loading @@ -501,6 +501,14 @@ public class DirectoryFragment extends Fragment { mode.finish(); return true; } else if (id == R.id.menu_select_all) { int count = mCurrentView.getCount(); for (int i = 0; i < count; i++) { mCurrentView.setItemChecked(i, true); } updateDisplayState(); return true; } else { return false; } Loading