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:
parent
486ceb84d1
commit
9c952e7e24
1 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue