mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 20:45:29 +03:00
fix long click in ChooseAccountDialogFragment
otherwise the list in the ConversationListActivity would handle it which results in unexpected user actions dialog popup Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ca9520a8c7
commit
e69a03a7ce
1 changed files with 6 additions and 0 deletions
|
@ -176,6 +176,7 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
|||
}
|
||||
|
||||
adapter.addListener(onSwitchItemClickListener);
|
||||
adapter.addListener(onSwitchItemLongClickListener);
|
||||
adapter.updateDataSet(userItems, false);
|
||||
}
|
||||
}
|
||||
|
@ -320,6 +321,11 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
|||
}
|
||||
};
|
||||
|
||||
private final FlexibleAdapter.OnItemLongClickListener onSwitchItemLongClickListener =
|
||||
position -> {
|
||||
// do nothing. OnItemLongClickListener is necessary anyway so the activity won't handle the event
|
||||
};
|
||||
|
||||
private void drawStatus() {
|
||||
float size = DisplayUtils.convertDpToPixel(STATUS_SIZE_IN_DP, getContext());
|
||||
binding.currentAccount.ticker.setBackground(null);
|
||||
|
|
Loading…
Reference in a new issue