// 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.
*
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;
@Override
protected int getMetricsCategory() {
- return InstrumentedFragment.ABOUT_LEGAL_SETTINGS;
+ return MetricsLogger.ABOUT_LEGAL_SETTINGS;
}
public static final SearchIndexProvider SEARCH_INDEX_DATA_PROVIDER =
@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);