Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*In Activity*/
- @Override
- public void onBackPressed() {
- if (!clientFragment.onBackPressed()) {
- super.onBackPressed();
- }
- }
- /*In Fragment*/
- public boolean onBackPressed() {
- if (webView.canGoBack()) {
- webView.goBack();
- return true;
- } else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement