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

Commit ef94267a authored by Chris Wren's avatar Chris Wren
Browse files

import new view enums into MetricsLogger

Bug: 21114836
Change-Id: I9a6e00ab8d85726ca6505a28ca7a52aef5aa1e1a
parent 7ba46433
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -26,9 +26,6 @@ public abstract class InstrumentedFragment extends PreferenceFragment {
    // Declare new temporary categories here, starting after this value.
    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 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import android.os.Bundle;
import android.preference.PreferenceGroup;
import android.provider.SearchIndexableResource;

import com.android.internal.logging.MetricsLogger;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settings.search.Indexable;

@@ -59,7 +60,7 @@ public class LegalSettings extends SettingsPreferenceFragment implements Indexab

    @Override
    protected int getMetricsCategory() {
        return InstrumentedFragment.ABOUT_LEGAL_SETTINGS;
        return MetricsLogger.ABOUT_LEGAL_SETTINGS;
    }

    public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
+1 −1
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ public class SearchResultsSummary extends InstrumentedFragment {
        @Override
        protected void onPostExecute(Cursor cursor) {
            if (!isCancelled()) {
                MetricsLogger.action(getContext(), InstrumentedFragment.ACTION_SEARCH_RESULTS,
                MetricsLogger.action(getContext(), MetricsLogger.ACTION_SEARCH_RESULTS,
                        cursor.getCount());
                setResultsCursor(cursor);
                setResultsVisibility(cursor.getCount() > 0);