Created
September 5, 2015 11:55
-
-
Save danielwilson1702/50cc823435e63023d73f to your computer and use it in GitHub Desktop.
A base fragment with onBackPressed()
This file contains hidden or 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 BaseFragment extends Fragment implements OnBackPressed { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| } | |
| @Override | |
| public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
| return super.onCreateView(inflater, container, savedInstanceState); | |
| } | |
| public void onBackPressed() {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment