mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01: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
@ -176,6 +176,7 @@ public class ChooseAccountDialogFragment extends DialogFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
adapter.addListener(onSwitchItemClickListener);
|
adapter.addListener(onSwitchItemClickListener);
|
||||||
|
adapter.addListener(onSwitchItemLongClickListener);
|
||||||
adapter.updateDataSet(userItems, false);
|
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() {
|
private void drawStatus() {
|
||||||
float size = DisplayUtils.convertDpToPixel(STATUS_SIZE_IN_DP, getContext());
|
float size = DisplayUtils.convertDpToPixel(STATUS_SIZE_IN_DP, getContext());
|
||||||
binding.currentAccount.ticker.setBackground(null);
|
binding.currentAccount.ticker.setBackground(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user