Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onAttach(Activity activity) {
- super.onAttach(activity);
- try {
- if (!(activity instanceof FragmentActivity)) {
- throw new IllegalStateException(((Object) this).getClass().getSimpleName()
- + " must be attached to a FragmentActivity.");
- }
- mHomeActivity = (FragmentActivity) activity;
- } catch (ClassCastException e) {
- throw new ClassCastException(activity.toString() + " must implement OnNavigateProfileListener ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement