Clear selection on back

This commit is contained in:
M66B 2018-10-25 06:11:14 +00:00
parent cca96106cd
commit 32b0f23462
1 changed files with 11 additions and 0 deletions

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