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

Commit 850c6662 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

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

parents f55385b5 37820711
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,