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

Commit 7cefde2e authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

Merge "Update Instrumentation.newActivity to pass non-null application." into pi-dev

am: 850c6662

Change-Id: I152d5029366aba600dc81ea6eb9113ff22fd1bec
parents c5b3e037 850c6662
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1182,6 +1182,10 @@ public class Instrumentation {
            IllegalAccessException {
        Activity activity = (Activity)clazz.newInstance();
        ActivityThread aThread = null;
        // Activity.attach expects a non-null Application Object.
        if (application == null) {
            application = new Application();
        }
        activity.attach(context, aThread, this, token, 0 /* ident */, application, intent,
                info, title, parent, id,
                (Activity.NonConfigurationInstances)lastNonConfigurationInstance,