onResume -> onStart, onPause -> onStop

For SettingsActivity and DashboardSummary

Bug: 28896214
Change-Id: I235d5c82b04b1363bf4416acb5cf5fc1c4db704f
This commit is contained in:
Jason Monk
2016-06-01 13:45:25 -04:00
parent 36522e8854
commit 350a930c68
2 changed files with 13 additions and 18 deletions

View File

@@ -110,9 +110,9 @@ public class DashboardSummary extends InstrumentedFragment
}
@Override
public void onResume() {
public void onStart() {
long startTime = System.currentTimeMillis();
super.onResume();
super.onStart();
((SettingsDrawerActivity) getActivity()).addCategoryListener(this);
mSummaryLoader.setListening(true);
@@ -127,13 +127,13 @@ public class DashboardSummary extends InstrumentedFragment
DashboardAdapter.getSuggestionIdentifier(getContext(), suggestion));
}
}
if (DEBUG_TIMING) Log.d(TAG, "onResume took " + (System.currentTimeMillis() - startTime)
if (DEBUG_TIMING) Log.d(TAG, "onStart took " + (System.currentTimeMillis() - startTime)
+ " ms");
}
@Override
public void onPause() {
super.onPause();
public void onStop() {
super.onStop();
((SettingsDrawerActivity) getActivity()).remCategoryListener(this);
mSummaryLoader.setListening(false);