diff options
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogAdapter.java | 11 | ||||
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogFragment.java | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogAdapter.java b/java/com/android/dialer/app/calllog/CallLogAdapter.java index b0afec1a7..4966d7fba 100644 --- a/java/com/android/dialer/app/calllog/CallLogAdapter.java +++ b/java/com/android/dialer/app/calllog/CallLogAdapter.java @@ -317,6 +317,15 @@ public class CallLogAdapter extends GroupingListAdapter Logger.get(mActivity) .logImpression(DialerImpression.Type.MULTISELECT_SINGLE_PRESS_SELECT_ENTRY); checkMarkCallLogEntry(viewHolder); + // select all check box logic + if (getItemCount() == selectedItems.size()) { + LogUtil.i( + "mExpandCollapseListener.onClick", + "getitem count %d is equal to items select count %d, check select all box", + getItemCount(), + selectedItems.size()); + mMultiSelectRemoveView.tapSelectAll(); + } } return; } @@ -1394,5 +1403,7 @@ public class CallLogAdapter extends GroupingListAdapter void showMultiSelectRemoveView(boolean show); void setSelectAllModeToFalse(); + + void tapSelectAll(); } } diff --git a/java/com/android/dialer/app/calllog/CallLogFragment.java b/java/com/android/dialer/app/calllog/CallLogFragment.java index b03a4ad64..aa765d90e 100644 --- a/java/com/android/dialer/app/calllog/CallLogFragment.java +++ b/java/com/android/dialer/app/calllog/CallLogFragment.java @@ -664,6 +664,13 @@ public class CallLogFragment extends Fragment } @Override + public void tapSelectAll() { + LogUtil.i("CallLogFragment.tapSelectAll", "imitating select all"); + selectAllMode = true; + updateSelectAllIcon(); + } + + @Override public void onClick(View v) { selectAllMode = !selectAllMode; if (selectAllMode) { |