Fix deprecated method usage
This commit is contained in:
parent
a4396eb375
commit
7d1e55321a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue