mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Workaround rule action spinner focus issue
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user