Prevent monkey tests from crashing with race conditions am: 7ac78f2daf
am: 9264154bee
am: 927007dd53
Change-Id: I74f45c284e8cde00af46562fb0903a856ea05de4
This commit is contained in:
@@ -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;
|
||||
@@ -1322,7 +1323,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();
|
||||
|
Reference in New Issue
Block a user