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

Commit c984329d authored by Suchi Amalapurapu's avatar Suchi Amalapurapu
Browse files

Invoke getSystem.updateConfiguration when binding an application to

update config changes in Resources.mSystem
Since Resources is preloaded in the zygote, system resources in Resources
need to be updated with config changes every time an application is started
parent 0d8b77c2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3697,6 +3697,13 @@ public final class ActivityThread {
         */
        Locale.setDefault(data.config.locale);

        /*
         * Update the system configuration since its preloaded and might not
         * reflect configuration changes. The configuration object passed
         * in AppBindData can be safely assumed to be up to date
         */
        Resources.getSystem().updateConfiguration(mConfiguration, null);

        data.info = getPackageInfoNoCheck(data.appInfo);

        if (data.debugMode != IApplicationThread.DEBUG_OFF) {