import new view enums into MetricsLogger
Bug: 21114836 Change-Id: I9a6e00ab8d85726ca6505a28ca7a52aef5aa1e1a
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
@@ -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 =
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user