Lower case the first letter of storage type.

In the app details, the first letter of the storage type was
capitalized, causing an odd string of "X used in Internal storage."

Change-Id: I2b4f23ea1799dc1730fdab596e4a87a0cb673c68
Fixes: 36001265
Test: Settings robotest
This commit is contained in:
Daniel Nishi
2017-03-28 17:07:30 -07:00
parent c5f93b9ba5
commit 0d5d180d7d
2 changed files with 3 additions and 3 deletions

View File

@@ -712,7 +712,7 @@ public class InstalledAppDetails extends AppInfoBase
? R.string.storage_type_external ? R.string.storage_type_external
: R.string.storage_type_internal); : R.string.storage_type_internal);
return context.getString(R.string.storage_summary_format, return context.getString(R.string.storage_summary_format,
getSize(context, stats), storageType); getSize(context, stats), storageType.toString().toLowerCase());
} }
} }

View File

@@ -124,7 +124,7 @@ public final class InstalledAppDetailsTest {
when(stats.getTotalBytes()).thenReturn(1L); when(stats.getTotalBytes()).thenReturn(1L);
assertThat(InstalledAppDetails.getStorageSummary(context, stats, true)) assertThat(InstalledAppDetails.getStorageSummary(context, stats, true))
.isEqualTo("1.00B used in External storage"); .isEqualTo("1.00B used in external storage");
} }
@Test @Test
@@ -134,7 +134,7 @@ public final class InstalledAppDetailsTest {
when(stats.getTotalBytes()).thenReturn(1L); when(stats.getTotalBytes()).thenReturn(1L);
assertThat(InstalledAppDetails.getStorageSummary(context, stats, false)) assertThat(InstalledAppDetails.getStorageSummary(context, stats, false))
.isEqualTo("1.00B used in Internal storage"); .isEqualTo("1.00B used in internal storage");
} }
@Test @Test