Prevent double tap on suggestions am: 703dc60b14
am: ae3ad11e69
Change-Id: Ie53d72bf5e504cdc87d01ce0aeef1683b9d72214
This commit is contained in:
@@ -1274,7 +1274,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