mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 04:39:04 +00:00
load content for customizations
This commit is contained in:
parent
ad87a8addd
commit
e9f447f831
1 changed files with 23 additions and 4 deletions
|
|
@ -19,11 +19,11 @@ import java.util.Map;
|
|||
|
||||
import butterknife.Bind;
|
||||
import butterknife.ButterKnife;
|
||||
import retrofit.Callback;
|
||||
import retrofit.RetrofitError;
|
||||
import retrofit.client.Response;
|
||||
|
||||
/**
|
||||
* Created by viirus on 12/01/16.
|
||||
*/
|
||||
public class AvatarOverviewFragment extends BaseFragment implements AdapterView.OnItemSelectedListener {
|
||||
public class AvatarOverviewFragment extends BaseFragment implements AdapterView.OnItemSelectedListener, Callback<ContentResult> {
|
||||
|
||||
FragmentAvatarOverviewBinding viewBinding;
|
||||
|
||||
|
|
@ -57,6 +57,15 @@ public class AvatarOverviewFragment extends BaseFragment implements AdapterView.
|
|||
@Bind(R.id.avatar_background)
|
||||
View avatarBackgroundView;
|
||||
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
mAPIHelper.apiService.getContent(this);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
|
|
@ -171,4 +180,14 @@ public class AvatarOverviewFragment extends BaseFragment implements AdapterView.
|
|||
|
||||
@Override
|
||||
public void onNothingSelected(AdapterView<?> parent) {}
|
||||
|
||||
@Override
|
||||
public void success(ContentResult contentResult, Response response) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void failure(RetrofitError error) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue