mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 18:48:48 +00:00
Fix creating list from hamburger menu
This commit is contained in:
parent
24554b50dd
commit
8fa081e4b7
@ -61,6 +61,9 @@ public class CreateListDialogFragment extends DialogFragment {
|
|||||||
super.onAttach(context);
|
super.onAttach(context);
|
||||||
try {
|
try {
|
||||||
onNewListListener = (OnNewListListener) getTargetFragment();
|
onNewListListener = (OnNewListListener) getTargetFragment();
|
||||||
|
if (onNewListListener == null) {
|
||||||
|
onNewListListener = (OnNewListListener) getActivity();
|
||||||
|
}
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
Log.e("CreateListDialogFragment", "onAttach: ClassCastException: " + e.getMessage());
|
Log.e("CreateListDialogFragment", "onAttach: ClassCastException: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user