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

Commit 33a9b650 authored by kaiyiz's avatar kaiyiz Committed by Steve Kondik
Browse files

ExternalStorageProvider: String mismatch with system language

Text of phone storage does not change when locale changes.

Obtain the string each time by querying the database.

CRs-fixed: 739290

Change-Id: Ic6f5292f8eef9c9438e80fa876b8f276f21e26c8
parent 7a9c11f4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -282,6 +282,9 @@ public class ExternalStorageProvider extends DocumentsProvider {
                final RootInfo root = mIdToRoot.get(rootId);
                final File path = mIdToPath.get(rootId);

                if (ROOT_ID_PRIMARY_EMULATED.equals(root.rootId)) {
                    root.title = getContext().getString(R.string.root_internal_storage);
                }
                final RowBuilder row = result.newRow();
                row.add(Root.COLUMN_ROOT_ID, root.rootId);
                row.add(Root.COLUMN_FLAGS, root.flags);