0

In Method:

@Override
public void onBackPressed()

Is getting called whenever back is pressed in one of my Fragments. Is there some way I can tell which fragment is the one that is active? Or some other inforamtion inside OnBackPressed()?

Added information: This is how I replace fragments inside the activity: enter image description here Thank you

Yuval Levy
  • 2,397
  • 10
  • 44
  • 73

0 Answers0