Merge "Update App storage usage summary" into rvc-dev am: 9c32d89aaa

Change-Id: Ia02627cb75d8a261644f2343d313e261c8e532f1
This commit is contained in:
TreeHugger Robot
2020-03-30 08:31:08 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 3 deletions

View File

@@ -9229,9 +9229,9 @@
<!-- Summary for app storage preference --> <!-- Summary for app storage preference -->
<string name="storage_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used in <xliff:g id="storage_type" example="internal memory">%2$s</xliff:g></string> <string name="storage_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used in <xliff:g id="storage_type" example="internal memory">%2$s</xliff:g></string>
<!-- Summary describing internal storage for applications [CHAR LIMIT=25] --> <!-- Summary describing internal storage for applications [CHAR LIMIT=25] -->
<string name="storage_type_internal">Internal storage</string> <string name="storage_type_internal">internal storage</string>
<!-- Summary describing external storage for applications [CHAR LIMIT=25] --> <!-- Summary describing external storage for applications [CHAR LIMIT=25] -->
<string name="storage_type_external">External storage</string> <string name="storage_type_external">external storage</string>
<!-- Summary for data usage preference [CHAR LIMIT=15] --> <!-- Summary for data usage preference [CHAR LIMIT=15] -->
<string name="data_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used since <xliff:g id="date" example="Jan 12">%2$s</xliff:g></string> <string name="data_summary_format"><xliff:g id="size" example="30.00MB">%1$s</xliff:g> used since <xliff:g id="date" example="Jan 12">%2$s</xliff:g></string>

View File

@@ -83,7 +83,7 @@ public class AppStoragePreferenceController extends AppInfoPreferenceControllerB
: R.string.storage_type_internal); : R.string.storage_type_internal);
return mContext.getString(R.string.storage_summary_format, return mContext.getString(R.string.storage_summary_format,
Formatter.formatFileSize(mContext, stats.getTotalBytes()), Formatter.formatFileSize(mContext, stats.getTotalBytes()),
storageType.toString().toLowerCase()); storageType.toString());
} }
@Override @Override