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

Commit 927007dd authored by Matthew Fritze's avatar Matthew Fritze Committed by android-build-merger
Browse files

Prevent monkey tests from crashing with race conditions am: 7ac78f2d

am: 9264154b

Change-Id: If30a93ce12ee3100f6fea14f4765e3428b122ad3
parents c8ef13d1 9264154b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -16,10 +16,11 @@

package com.android.settings;

import android.app.ActionBar;
import android.app.ActivityManager;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.app.ActionBar;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
@@ -1274,7 +1275,7 @@ public class SettingsActivity extends SettingsDrawerActivity
    }

    public void startSuggestion(Intent intent) {
        if (intent == null) {
        if (intent == null || ActivityManager.isUserAMonkey()) {
            return;
        }
        final ComponentName componentName = intent.getComponent();