Open pishguy opened 6 years ago
What I did to prevent back navigation when SlidingLayer is open is to simple override onBackPressed() and check if the layer is open. Was this your question?
@Override
public void onBackPressed() {
if (slidingLayer.isOpened()) {
slidingLayer.closeLayer(true);
} else {
super.onBackPressed();
}
}
Right, that's left at your complete control and will. Where you able to find a similar solution to apply to your navigation patterns @MahdiPishguy ?
i have a big problem with this library such as implementing onBackPressed for opened SlidingLayers on fragments or activities, how can i do that without implementing android listeners to detect that?