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
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue