Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8435d57 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent double tap on suggestions" into nyc-mr1-dev

parents 839be498 703dc60b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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);
    }