Prevent double tap on suggestions
am: 703dc60b14
Change-Id: I29e1f6aff53fc0c97ea5fabf325838981f1ef57f
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user