Loading src/com/android/contacts/calllog/CallLogAdapter.java +2 −4 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public class CallLogAdapter extends GroupingListAdapter implements Runnable, ViewTreeObserver.OnPreDrawListener, CallLogGroupBuilder.GroupCreator { /** Interface used to initiate a refresh of the content. */ public interface CallFetcher { public void startCallsQuery(); public void fetchCalls(); } /** The time in millis to delay starting the thread processing requests. */ Loading Loading @@ -183,9 +183,7 @@ public class CallLogAdapter extends GroupingListAdapter */ @Override protected void onContentChanged() { // When the content changes, always fetch all the calls, in case a new missed call came // in and we were filtering over voicemail only, so that we see the missed call. mCallFetcher.startCallsQuery(); mCallFetcher.fetchCalls(); } void setLoading(boolean loading) { Loading src/com/android/contacts/calllog/CallLogFragment.java +8 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,14 @@ public class CallLogFragment extends ListFragment implements ViewPagerVisibility } @Override public void fetchCalls() { if (mShowingVoicemailOnly) { mCallLogQueryHandler.fetchVoicemailOnly(); } else { mCallLogQueryHandler.fetchAllCalls(); } } public void startCallsQuery() { mAdapter.setLoading(true); mCallLogQueryHandler.fetchAllCalls(); Loading tests/src/com/android/contacts/calllog/CallLogAdapterTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class CallLogAdapterTest extends AndroidTestCase { // Use a call fetcher that does not do anything. CallLogAdapter.CallFetcher fakeCallFetcher = new CallLogAdapter.CallFetcher() { @Override public void startCallsQuery() {} public void fetchCalls() {} }; mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, TEST_COUNTRY_ISO, Loading Loading
src/com/android/contacts/calllog/CallLogAdapter.java +2 −4 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public class CallLogAdapter extends GroupingListAdapter implements Runnable, ViewTreeObserver.OnPreDrawListener, CallLogGroupBuilder.GroupCreator { /** Interface used to initiate a refresh of the content. */ public interface CallFetcher { public void startCallsQuery(); public void fetchCalls(); } /** The time in millis to delay starting the thread processing requests. */ Loading Loading @@ -183,9 +183,7 @@ public class CallLogAdapter extends GroupingListAdapter */ @Override protected void onContentChanged() { // When the content changes, always fetch all the calls, in case a new missed call came // in and we were filtering over voicemail only, so that we see the missed call. mCallFetcher.startCallsQuery(); mCallFetcher.fetchCalls(); } void setLoading(boolean loading) { Loading
src/com/android/contacts/calllog/CallLogFragment.java +8 −0 Original line number Diff line number Diff line Loading @@ -220,6 +220,14 @@ public class CallLogFragment extends ListFragment implements ViewPagerVisibility } @Override public void fetchCalls() { if (mShowingVoicemailOnly) { mCallLogQueryHandler.fetchVoicemailOnly(); } else { mCallLogQueryHandler.fetchAllCalls(); } } public void startCallsQuery() { mAdapter.setLoading(true); mCallLogQueryHandler.fetchAllCalls(); Loading
tests/src/com/android/contacts/calllog/CallLogAdapterTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ public class CallLogAdapterTest extends AndroidTestCase { // Use a call fetcher that does not do anything. CallLogAdapter.CallFetcher fakeCallFetcher = new CallLogAdapter.CallFetcher() { @Override public void startCallsQuery() {} public void fetchCalls() {} }; mAdapter = new TestCallLogAdapter(getContext(), fakeCallFetcher, TEST_COUNTRY_ISO, Loading