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

Commit 62731397 authored by Fan Zhang's avatar Fan Zhang
Browse files

Implement onSuggestionLaunched

Bug: 65065268
Test: manual
Change-Id: I3abbb7159f712c0f96f3435319f0bf7ec94f82f0
parent 112aa3c5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -47,6 +47,11 @@ public class SuggestionService extends android.service.settings.suggestions.Sugg
                .markSuggestionDismissed(this /* context */, id);
    }

    @Override
    public void onSuggestionLaunched(Suggestion suggestion) {
        Log.d(TAG, "Suggestion launched" + suggestion.getId());
    }

    public static SharedPreferences getSharedPrefs(Context context) {
        return context.getApplicationContext()
                .getSharedPreferences(SHARED_PREF_FILENAME, Context.MODE_PRIVATE);