am 96a06144
: Merge "Add action for search results including the count" into mnc-dev
* commit '96a0614409e9bdc2df6dd83bc151a0d00eaf2ced': Add action for search results including the count
This commit is contained in:
@@ -27,6 +27,7 @@ public abstract class InstrumentedFragment extends PreferenceFragment {
|
|||||||
public static final int UNDECLARED = 100000;
|
public static final int UNDECLARED = 100000;
|
||||||
|
|
||||||
public static final int ABOUT_LEGAL_SETTINGS = UNDECLARED + 1;
|
public static final int ABOUT_LEGAL_SETTINGS = UNDECLARED + 1;
|
||||||
|
public static final int ACTION_SEARCH_RESULTS = UNDECLARED + 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Declare the view of this category.
|
* Declare the view of this category.
|
||||||
|
@@ -83,6 +83,8 @@ public class SearchResultsSummary extends InstrumentedFragment {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Cursor cursor) {
|
protected void onPostExecute(Cursor cursor) {
|
||||||
if (!isCancelled()) {
|
if (!isCancelled()) {
|
||||||
|
MetricsLogger.action(getContext(), InstrumentedFragment.ACTION_SEARCH_RESULTS,
|
||||||
|
cursor.getCount());
|
||||||
setResultsCursor(cursor);
|
setResultsCursor(cursor);
|
||||||
setResultsVisibility(cursor.getCount() > 0);
|
setResultsVisibility(cursor.getCount() > 0);
|
||||||
} else if (cursor != null) {
|
} else if (cursor != null) {
|
||||||
|
Reference in New Issue
Block a user