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

Commit 2632c97c authored by Wale Ogunwale's avatar Wale Ogunwale
Browse files

Added @NonNull to Instrumentation.startActivitySync

Per API council recommendation.

Change-Id: Ib45381278a2bf7f3d1d2c68b84422a645bd706e3
Fixes: 71584604
Test: N/A
parent 45354354
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.app;

import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
@@ -458,7 +459,8 @@ public class Instrumentation {
     *
     * @see Context#startActivity(Intent, Bundle)
     */
    public Activity startActivitySync(Intent intent, @Nullable Bundle options) {
    @NonNull
    public Activity startActivitySync(@NonNull Intent intent, @Nullable Bundle options) {
        validateNotAppThread();

        synchronized (mSync) {