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

Commit 703dc60b authored by Matthew Fritze's avatar Matthew Fritze
Browse files

Prevent double tap on suggestions

Change-Id: I963d96b75cb5d464b6f91cf0824aee6e21cfeff0
Fixes: 31856366
parent cf0f3012
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);
    }