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

Commit cbbc69b8 authored by Jason Monk's avatar Jason Monk
Browse files

Add action for search results including the count

Bug: 20293458
Change-Id: I9d3f04fb74c0e978e69e17898b703e270298fcbc
parent 9dd754e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ public abstract class InstrumentedFragment extends PreferenceFragment {
    public static final int UNDECLARED = 100000;

    public static final int ABOUT_LEGAL_SETTINGS = UNDECLARED + 1;
    public static final int ACTION_SEARCH_RESULTS = UNDECLARED + 2;

    /**
     * Declare the view of this category.
+2 −0
Original line number Diff line number Diff line
@@ -83,6 +83,8 @@ public class SearchResultsSummary extends InstrumentedFragment {
        @Override
        protected void onPostExecute(Cursor cursor) {
            if (!isCancelled()) {
                MetricsLogger.action(getContext(), InstrumentedFragment.ACTION_SEARCH_RESULTS,
                        cursor.getCount());
                setResultsCursor(cursor);
                setResultsVisibility(cursor.getCount() > 0);
            } else if (cursor != null) {