Merge "Prevent double tap on suggestions" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d8435d57d2
@@ -1269,7 +1269,14 @@ public class SettingsActivity extends SettingsDrawerActivity
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void startSuggestion(Intent intent) {
|
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);
|
startActivityForResult(intent, REQUEST_SUGGESTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user