Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45c42b2c authored by Daniel Nishi's avatar Daniel Nishi
Browse files

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: Ibcac54259403f6d0f39df8fa2d3af10304a46057
Merged-In: I2b4f23ea1799dc1730fdab596e4a87a0cb673c68
Fixes: 36001265
Test: Settings robotest
parent dd0e0b45
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -712,7 +712,7 @@ public class InstalledAppDetails extends AppInfoBase
                    ? R.string.storage_type_external
                    : R.string.storage_type_internal);
            return context.getString(R.string.storage_summary_format,
                    getSize(context, stats), storageType);
                    getSize(context, stats), storageType.toString().toLowerCase());
        }
    }

+2 −2
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ public final class InstalledAppDetailsTest {
        when(stats.getTotalBytes()).thenReturn(1L);

        assertThat(InstalledAppDetails.getStorageSummary(context, stats, true))
                .isEqualTo("1.00B used in External storage");
                .isEqualTo("1.00B used in external storage");
    }

    @Test
@@ -134,7 +134,7 @@ public final class InstalledAppDetailsTest {
        when(stats.getTotalBytes()).thenReturn(1L);

        assertThat(InstalledAppDetails.getStorageSummary(context, stats, false))
                .isEqualTo("1.00B used in Internal storage");
                .isEqualTo("1.00B used in internal storage");
    }

    @Test