mirror of https://github.com/M66B/FairEmail.git
Clear selection on back
This commit is contained in:
parent
cca96106cd
commit
32b0f23462
|
@ -661,6 +661,17 @@ public class FragmentMessages extends FragmentEx {
|
|||
}
|
||||
});
|
||||
|
||||
((ActivityBase) getActivity()).addBackPressedListener(new ActivityBase.IBackPressedListener() {
|
||||
@Override
|
||||
public boolean onBackPressed() {
|
||||
if (selectionTracker != null && selectionTracker.hasSelection()) {
|
||||
selectionTracker.clearSelection();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// Initialize
|
||||
tvNoEmail.setVisibility(View.GONE);
|
||||
bottom_navigation.setVisibility(View.GONE);
|
||||
|
|
Loading…
Reference in New Issue