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:
Marcel Hibbe 2023-06-30 15:04:29 +02:00
parent ca9520a8c7
commit e69a03a7ce

View file

@ -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);