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

Commit f14f54f1 authored by Matthew Fritze's avatar Matthew Fritze Committed by android-build-merger
Browse files

Prevent double tap on suggestions am: 703dc60b am: ae3ad11e

am: 8bf5fa43

Change-Id: I5c5dae114f51364f63fe37b6511e5bd1c376282a
parents 2709fdfc 8bf5fa43
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1320,7 +1320,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);
    }