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

Commit b35b682b authored by d34d's avatar d34d
Browse files

Invalidate preferences headers when resuming

If the use is in a sub settings, i.e. general settings, and changes
their language.  Upon returning to File Manager and pressing back
to go to the main settings menu, the about text will remain in the
previous language.  This is easily reproduced when the intial language
is set to Chinese and then switched to English.  The about text will
still be in Chinese.

Change-Id: I1dff61a6a94e6aabf336d863e102c29044f3a649
parent 1359c13d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -172,6 +172,13 @@ public class SettingsPreferences extends PreferenceActivity {
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
        // in case of a locale change, invalidate the headers
        invalidateHeaders();
    }

    /**
     * Method that applies the current theme to the activity
     * @hide