mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +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.Bind;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
import retrofit.Callback;
|
||||||
|
import retrofit.RetrofitError;
|
||||||
|
import retrofit.client.Response;
|
||||||
|
|
||||||
/**
|
public class AvatarOverviewFragment extends BaseFragment implements AdapterView.OnItemSelectedListener, Callback<ContentResult> {
|
||||||
* Created by viirus on 12/01/16.
|
|
||||||
*/
|
|
||||||
public class AvatarOverviewFragment extends BaseFragment implements AdapterView.OnItemSelectedListener {
|
|
||||||
|
|
||||||
FragmentAvatarOverviewBinding viewBinding;
|
FragmentAvatarOverviewBinding viewBinding;
|
||||||
|
|
||||||
|
|
@ -57,6 +57,15 @@ public class AvatarOverviewFragment extends BaseFragment implements AdapterView.
|
||||||
@Bind(R.id.avatar_background)
|
@Bind(R.id.avatar_background)
|
||||||
View avatarBackgroundView;
|
View avatarBackgroundView;
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
mAPIHelper.apiService.getContent(this);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||||
Bundle savedInstanceState) {
|
Bundle savedInstanceState) {
|
||||||
|
|
@ -171,4 +180,14 @@ public class AvatarOverviewFragment extends BaseFragment implements AdapterView.
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNothingSelected(AdapterView<?> parent) {}
|
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