Fix deprecated method usage

This commit is contained in:
Andrew Rabert 2018-04-24 00:04:41 -04:00
parent a4396eb375
commit 7d1e55321a
1 changed files with 3 additions and 3 deletions

View File

@ -144,9 +144,9 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
} }
@Override @Override
public void onAttach(Activity activity) { public void onAttach(Context context) {
super.onAttach(activity); super.onAttach(context);
context = (SubsonicActivity) activity; this.context = (SubsonicActivity) getActivity();
} }
public void setContext(SubsonicActivity context) { public void setContext(SubsonicActivity context) {