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

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

Prevent double tap on suggestions am: 703dc60b

am: ae3ad11e

Change-Id: Ie53d72bf5e504cdc87d01ce0aeef1683b9d72214
parents 0d90d66c ae3ad11e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1274,7 +1274,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);
    }