Prevent double tap on suggestions

am: 703dc60b14

Change-Id: I29e1f6aff53fc0c97ea5fabf325838981f1ef57f
This commit is contained in:
Matthew Fritze
2016-09-30 22:41:32 +00:00
committed by android-build-merger

View File

@@ -1269,7 +1269,14 @@ public class SettingsActivity extends SettingsDrawerActivity
}
public void startSuggestion(Intent intent) {
mCurrentSuggestion = intent.getComponent();
if (intent == null) {
return;
}
final ComponentName componentName = intent.getComponent();
if (componentName.equals(mCurrentSuggestion)) {
return;
}
mCurrentSuggestion = componentName;
startActivityForResult(intent, REQUEST_SUGGESTION);
}