@Override public void onAttach(Activity activity) { super.onAttach(activity); try { onTaskRestoreListener = (OnTaskRestoreListener) activity; } catch (ClassCastException e) { throw new ClassCastException(activity.toString() + " must implement OnTaskRestoreListener"); } }
@Override public void onAttach(Activity activity) { super.onAttach(activity); }