Created
March 8, 2018 09:51
-
-
Save extmkv/8227172e140c25c99f8693c717b59718 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FragmentA extends Fragment implements OnBackPressedListener { | |
... | |
@Override | |
public boolean onBackPressed() { | |
// Do what you want here! If you return true the activity will not process the OnBackPressed | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment