1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 00:21:10 +00:00

Workaround rule action spinner focus issue

This commit is contained in:
M66B 2024-07-05 08:26:59 +02:00
parent 486ceb84d1
commit 9c952e7e24

View file

@ -533,6 +533,15 @@ public class FragmentRule extends FragmentBase {
adapterAction.setDropDownViewResource(R.layout.spinner_item1_dropdown);
spAction.setAdapter(adapterAction);
spAction.setFocusableInTouchMode(true);
spAction.setOnFocusChangeListener(new View.OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus && spAction.getWindowToken() != null)
spAction.performClick();
}
});
btnFolder.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {