Merge "Avoid showing empty call log when activity is paused"
diff --git a/src/com/android/contacts/RecentCallsListActivity.java b/src/com/android/contacts/RecentCallsListActivity.java
index 67e402d..987784f 100644
--- a/src/com/android/contacts/RecentCallsListActivity.java
+++ b/src/com/android/contacts/RecentCallsListActivity.java
@@ -730,8 +730,10 @@
sFormattingType = FORMATTING_TYPE_INVALID;
}
+
@Override
- protected void onResume() {
+ protected void onStart() {
+ super.onStart();
// The adapter caches looked up numbers, clear it so they will get
// looked up again.
if (mAdapter != null) {
@@ -739,19 +741,25 @@
}
startQuery();
+ }
+
+ @Override
+ protected void onResume() {
resetNewCallsFlag();
-
super.onResume();
-
mAdapter.mPreDrawListener = null; // Let it restart the thread after next draw
}
@Override
protected void onPause() {
super.onPause();
-
// Kill the requests thread
mAdapter.stopRequestProcessing();
+ }
+
+ @Override
+ protected void onDestroy() {
+ super.onDestroy();
mAdapter.changeCursor(null);
}