diff options
author | yueg <yueg@google.com> | 2017-09-25 17:58:58 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-25 17:58:58 +0000 |
commit | bd649e9df82a90574aca0e06cba41fcb0bca70be (patch) | |
tree | 3ad49ca0714e518b5e93a7364b6671ddf30263bd /java | |
parent | a88377185047b4cdc9c5ab1881ec78930df58fda (diff) | |
parent | 3d05fe29e87fefe80afa88ecd6c291d0580ddfdd (diff) |
Merge changes Ie520c656,I222009be
am: 3d05fe29e8
Change-Id: I7b770ffab9823e91bce804a6455de1485bd4cc95
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogAdapter.java | 5 | ||||
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogFragment.java | 3 | ||||
-rw-r--r-- | java/com/android/incallui/InCallActivityCommon.java | 7 |
3 files changed, 11 insertions, 4 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogAdapter.java b/java/com/android/dialer/app/calllog/CallLogAdapter.java index 6540b6f95..e79c89c57 100644 --- a/java/com/android/dialer/app/calllog/CallLogAdapter.java +++ b/java/com/android/dialer/app/calllog/CallLogAdapter.java @@ -407,6 +407,11 @@ public class CallLogAdapter extends GroupingListAdapter } }; + @Nullable + public RecyclerView.OnScrollListener getOnScrollListener() { + return null; + } + private void checkMarkCallLogEntry(CallLogListItemViewHolder viewHolder) { announceforAccessibility( mActivity.getCurrentFocus(), diff --git a/java/com/android/dialer/app/calllog/CallLogFragment.java b/java/com/android/dialer/app/calllog/CallLogFragment.java index 441cb4a5c..8ed924d76 100644 --- a/java/com/android/dialer/app/calllog/CallLogFragment.java +++ b/java/com/android/dialer/app/calllog/CallLogFragment.java @@ -352,6 +352,9 @@ public class CallLogFragment extends Fragment new FilteredNumberAsyncQueryHandler(getActivity()), activityType); mRecyclerView.setAdapter(mAdapter); + if (mAdapter.getOnScrollListener() != null) { + mRecyclerView.addOnScrollListener(mAdapter.getOnScrollListener()); + } fetchCalls(); } diff --git a/java/com/android/incallui/InCallActivityCommon.java b/java/com/android/incallui/InCallActivityCommon.java index fec9700ab..9e6271f3e 100644 --- a/java/com/android/incallui/InCallActivityCommon.java +++ b/java/com/android/incallui/InCallActivityCommon.java @@ -317,10 +317,6 @@ public class InCallActivityCommon { if (dialpadFragment != null) { dialpadFragment.onDialerKeyUp(null); } - - if (inCallActivity.isFinishing()) { - InCallPresenter.getInstance().unsetActivity(inCallActivity); - } } public void onStop() { @@ -342,6 +338,9 @@ public class InCallActivityCommon { if (!isRecreating) { InCallPresenter.getInstance().onUiShowing(false); } + if (inCallActivity.isFinishing()) { + InCallPresenter.getInstance().unsetActivity(inCallActivity); + } } public void onDestroy() { |