Loading res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -395,4 +395,10 @@ <!-- Button for continuing a file operation in background, eg. copying, moving or extracting. [CHAR LIMIT=48] --> <string name="continue_in_background">Continue in background</string> <!-- Label describing the number of selected items [CHAR LIMIT=48] --> <plurals name="selected_count"> <item quantity="one"><xliff:g id="count" example="1">%1$d</xliff:g> selected</item> <item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> selected</item> </plurals> </resources> src/com/android/documentsui/ActionModeController.java +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ public class ActionModeController extends SelectionObserver<String> int size = mSelectionMgr.getSelection().size(); mode.getMenuInflater().inflate(R.menu.action_mode_menu, menu); mode.setTitle(TextUtils.formatSelectedCount(size)); mode.setTitle(mActivity.getResources().getQuantityString(R.plurals.selected_count, size)); if (size > 0) { Loading src/com/android/documentsui/ShortcutsUpdater.java +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ public final class ShortcutsUpdater { } private int getNumDynSlots(ShortcutManager mgr, int numDevices) { int slots = mgr.getMaxShortcutCountForActivity() - mgr.getManifestShortcuts().size(); int slots = mgr.getMaxShortcutCountPerActivity() - mgr.getManifestShortcuts().size(); return numDevices >= slots ? slots : numDevices; } Loading src/com/android/documentsui/inspector/HeaderView.java +0 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,6 @@ public final class HeaderView extends RelativeLayout implements HeaderDisplay { */ private void showImage(DocumentInfo info, @Nullable Bitmap thumbnail) { if (thumbnail != null) { mThumbnail.resetPaddingToInitialValues(); mThumbnail.setScaleType(ScaleType.CENTER_CROP); mThumbnail.setImageBitmap(thumbnail); } else { Loading src/com/android/documentsui/inspector/TableView.java +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public class TableView extends LinearLayout implements TableDisplay { } void setTitle(@StringRes int title, boolean showDivider) { putTitle(mContext.getResources().getString(title), showDivider); putTitle(mRes.getString(title), showDivider); } // A naughty title method (that takes strings, not message ids), mostly for DebugView. Loading Loading
res/values/strings.xml +6 −0 Original line number Diff line number Diff line Loading @@ -395,4 +395,10 @@ <!-- Button for continuing a file operation in background, eg. copying, moving or extracting. [CHAR LIMIT=48] --> <string name="continue_in_background">Continue in background</string> <!-- Label describing the number of selected items [CHAR LIMIT=48] --> <plurals name="selected_count"> <item quantity="one"><xliff:g id="count" example="1">%1$d</xliff:g> selected</item> <item quantity="other"><xliff:g id="count" example="3">%1$d</xliff:g> selected</item> </plurals> </resources>
src/com/android/documentsui/ActionModeController.java +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ public class ActionModeController extends SelectionObserver<String> int size = mSelectionMgr.getSelection().size(); mode.getMenuInflater().inflate(R.menu.action_mode_menu, menu); mode.setTitle(TextUtils.formatSelectedCount(size)); mode.setTitle(mActivity.getResources().getQuantityString(R.plurals.selected_count, size)); if (size > 0) { Loading
src/com/android/documentsui/ShortcutsUpdater.java +1 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ public final class ShortcutsUpdater { } private int getNumDynSlots(ShortcutManager mgr, int numDevices) { int slots = mgr.getMaxShortcutCountForActivity() - mgr.getManifestShortcuts().size(); int slots = mgr.getMaxShortcutCountPerActivity() - mgr.getManifestShortcuts().size(); return numDevices >= slots ? slots : numDevices; } Loading
src/com/android/documentsui/inspector/HeaderView.java +0 −1 Original line number Diff line number Diff line Loading @@ -101,7 +101,6 @@ public final class HeaderView extends RelativeLayout implements HeaderDisplay { */ private void showImage(DocumentInfo info, @Nullable Bitmap thumbnail) { if (thumbnail != null) { mThumbnail.resetPaddingToInitialValues(); mThumbnail.setScaleType(ScaleType.CENTER_CROP); mThumbnail.setImageBitmap(thumbnail); } else { Loading
src/com/android/documentsui/inspector/TableView.java +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ public class TableView extends LinearLayout implements TableDisplay { } void setTitle(@StringRes int title, boolean showDivider) { putTitle(mContext.getResources().getString(title), showDivider); putTitle(mRes.getString(title), showDivider); } // A naughty title method (that takes strings, not message ids), mostly for DebugView. Loading