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

Commit 559a7875 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2549955: Moving the application fails -Activity Manager Crash on launching the app

mResources will be null if we failed loading them because the app
is on external storage that has been unmounted.

Change-Id: If0dbbdc0c3441fa10d0ab074568361524db1c8db
parent 25c2dd60
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1482,7 +1482,8 @@ class ContextImpl extends Context {
        mPackageInfo = packageInfo;
        mResources = mPackageInfo.getResources(mainThread);

        if (container != null && container.getCompatibilityInfo().applicationScale !=
        if (mResources != null && container != null
                && container.getCompatibilityInfo().applicationScale !=
                        mResources.getCompatibilityInfo().applicationScale) {
            if (DEBUG) {
                Log.d(TAG, "loaded context has different scaling. Using container's" +