mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-11 14:58:48 +00:00
fix compiling
This commit is contained in:
parent
e1abf34bd0
commit
dc11454e40
2 changed files with 7 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ package com.habitrpg.android.habitica.ui.viewHolders;
|
|||
import com.habitrpg.android.habitica.R;
|
||||
|
||||
import android.content.Context;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
|
|
@ -17,6 +18,7 @@ public class SectionViewHolder extends RecyclerView.ViewHolder {
|
|||
TextView label;
|
||||
|
||||
@BindView(R.id.purchaseSetButton)
|
||||
@Nullable
|
||||
Button purchaseSetButton;
|
||||
|
||||
Context context;
|
||||
|
|
@ -25,7 +27,10 @@ public class SectionViewHolder extends RecyclerView.ViewHolder {
|
|||
super(itemView);
|
||||
context = itemView.getContext();
|
||||
ButterKnife.bind(this, itemView);
|
||||
this.purchaseSetButton.setVisibility(View.GONE);
|
||||
if (this.purchaseSetButton != null) {
|
||||
this.purchaseSetButton.setVisibility(View.GONE);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void bind(String title) {
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ public interface ApiService {
|
|||
Observable<HabitResponse<HabitRPGUser>> GetMember(@Path("mid") String memberId);
|
||||
|
||||
@GET("members/{mid}/achievements")
|
||||
Observable<AchievementResult> GetMemberAchievements(@Path("mid") String memberId);
|
||||
Observable<HabitResponse<AchievementResult>> GetMemberAchievements(@Path("mid") String memberId);
|
||||
|
||||
@POST("members/send-private-message")
|
||||
Observable<HabitResponse<PostChatMessageResult>> postPrivateMessage(@Body HashMap<String, String> messageDetails);
|
||||
|
|
|
|||
Loading…
Reference in a new issue