Clear selection on back

pull/146/head
M66B 6 years ago
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…
Cancel
Save