diff --git a/app/src/main/java/net/nullsum/audinaut/fragments/SubsonicFragment.java b/app/src/main/java/net/nullsum/audinaut/fragments/SubsonicFragment.java index 55d150f..af8cd6f 100644 --- a/app/src/main/java/net/nullsum/audinaut/fragments/SubsonicFragment.java +++ b/app/src/main/java/net/nullsum/audinaut/fragments/SubsonicFragment.java @@ -144,9 +144,9 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR } @Override - public void onAttach(Activity activity) { - super.onAttach(activity); - context = (SubsonicActivity) activity; + public void onAttach(Context context) { + super.onAttach(context); + this.context = (SubsonicActivity) getActivity(); } public void setContext(SubsonicActivity context) {