All of this will depend on how you created and customized the fragment (s). An easy way to check if your fragment (s) is permanently destroyed is to add a toast or other type of notification / flag, which you can check in the onDestroy()fragment method . If you see a toast, if the flag is set, you know that the fragment was destroyed.
source
share