Browse Source

Clear selection on back

main
M66B 6 years ago
parent
commit
32b0f23462
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      app/src/main/java/eu/faircode/email/FragmentMessages.java

+ 11
- 0
app/src/main/java/eu/faircode/email/FragmentMessages.java View File

@ -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 // Initialize
tvNoEmail.setVisibility(View.GONE); tvNoEmail.setVisibility(View.GONE);
bottom_navigation.setVisibility(View.GONE); bottom_navigation.setVisibility(View.GONE);


Loading…
Cancel
Save