mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
Update to butterknife 8.0.1
This commit is contained in:
parent
81cd740833
commit
fcc2f51b3c
51 changed files with 263 additions and 253 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'com.android.databinding'
|
apply plugin: 'com.android.databinding'
|
||||||
apply plugin: 'io.fabric'
|
apply plugin: 'io.fabric'
|
||||||
|
apply plugin: 'com.neenbedankt.android-apt'
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
|
@ -12,6 +13,7 @@ buildscript {
|
||||||
classpath 'io.fabric.tools:gradle:1.21.5'
|
classpath 'io.fabric.tools:gradle:1.21.5'
|
||||||
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
|
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
|
||||||
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.4.4'
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.4.4'
|
||||||
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,7 +51,8 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
// View Elements Binding :)
|
// View Elements Binding :)
|
||||||
compile 'com.jakewharton:butterknife:7.0.1'
|
compile 'com.jakewharton:butterknife:8.0.1'
|
||||||
|
apt 'com.jakewharton:butterknife-compiler:8.0.1'
|
||||||
|
|
||||||
compile('com.mikepenz:materialdrawer:5.0.9@aar') {
|
compile('com.mikepenz:materialdrawer:5.0.9@aar') {
|
||||||
transitive = true
|
transitive = true
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import com.mikepenz.materialdrawer.model.BaseViewHolder;
|
||||||
|
|
||||||
import org.greenrobot.eventbus.EventBus;
|
import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class EditTextDrawer extends BasePrimaryDrawerItem<EditTextDrawer, EditTextDrawer.ViewHolder> {
|
public class EditTextDrawer extends BasePrimaryDrawerItem<EditTextDrawer, EditTextDrawer.ViewHolder> {
|
||||||
|
|
@ -48,10 +48,10 @@ public class EditTextDrawer extends BasePrimaryDrawerItem<EditTextDrawer, EditTe
|
||||||
|
|
||||||
View view;
|
View view;
|
||||||
|
|
||||||
@Bind(R.id.editText)
|
@BindView(R.id.editText)
|
||||||
EditText editText;
|
EditText editText;
|
||||||
|
|
||||||
@Bind(R.id.btnAdd)
|
@BindView(R.id.btnAdd)
|
||||||
Button btnAdd;
|
Button btnAdd;
|
||||||
|
|
||||||
private ViewHolder(View view) {
|
private ViewHolder(View view) {
|
||||||
|
|
|
||||||
|
|
@ -11,21 +11,21 @@ import android.widget.TextView;
|
||||||
import com.habitrpg.android.habitica.R;
|
import com.habitrpg.android.habitica.R;
|
||||||
import com.magicmicky.habitrpgwrapper.lib.models.TutorialStep;
|
import com.magicmicky.habitrpgwrapper.lib.models.TutorialStep;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class TutorialView extends FrameLayout implements View.OnClickListener {
|
public class TutorialView extends FrameLayout implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.tutorialTextView)
|
@BindView(R.id.tutorialTextView)
|
||||||
TextView tutorialTextView;
|
TextView tutorialTextView;
|
||||||
|
|
||||||
@Bind(R.id.background)
|
@BindView(R.id.background)
|
||||||
RelativeLayout background;
|
RelativeLayout background;
|
||||||
|
|
||||||
@Bind(R.id.dismissButton)
|
@BindView(R.id.dismissButton)
|
||||||
Button dismissButton;
|
Button dismissButton;
|
||||||
|
|
||||||
@Bind(R.id.completeButton)
|
@BindView(R.id.completeButton)
|
||||||
Button completeButton;
|
Button completeButton;
|
||||||
|
|
||||||
public TutorialStep step;
|
public TutorialStep step;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ import com.habitrpg.android.habitica.ui.fragments.AboutFragment;
|
||||||
import com.mikepenz.aboutlibraries.Libs;
|
import com.mikepenz.aboutlibraries.Libs;
|
||||||
import com.mikepenz.aboutlibraries.LibsBuilder;
|
import com.mikepenz.aboutlibraries.LibsBuilder;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
public class AboutActivity extends BaseActivity {
|
public class AboutActivity extends BaseActivity {
|
||||||
|
|
||||||
@Bind(R.id.pager)
|
@BindView(R.id.pager)
|
||||||
ViewPager pager;
|
ViewPager pager;
|
||||||
|
|
||||||
@Bind(R.id.tab_layout)
|
@BindView(R.id.tab_layout)
|
||||||
TabLayout tabLayout;
|
TabLayout tabLayout;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.Preferences;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -36,13 +36,13 @@ public class ClassSelectionActivity extends BaseActivity implements Callback<Hab
|
||||||
Boolean classWasUnset = false;
|
Boolean classWasUnset = false;
|
||||||
Boolean shouldFinish = false;
|
Boolean shouldFinish = false;
|
||||||
|
|
||||||
@Bind(R.id.healerImageView)
|
@BindView(R.id.healerImageView)
|
||||||
ImageView healerImageView;
|
ImageView healerImageView;
|
||||||
@Bind(R.id.mageImageView)
|
@BindView(R.id.mageImageView)
|
||||||
ImageView mageImageView;
|
ImageView mageImageView;
|
||||||
@Bind(R.id.rogueImageView)
|
@BindView(R.id.rogueImageView)
|
||||||
ImageView rogueImageView;
|
ImageView rogueImageView;
|
||||||
@Bind(R.id.warriorImageView)
|
@BindView(R.id.warriorImageView)
|
||||||
ImageView warriorImageView;
|
ImageView warriorImageView;
|
||||||
|
|
||||||
APIHelper apiHelper;
|
APIHelper apiHelper;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import com.habitrpg.android.habitica.R;
|
||||||
import com.habitrpg.android.habitica.ui.UiUtils;
|
import com.habitrpg.android.habitica.ui.UiUtils;
|
||||||
import com.habitrpg.android.habitica.ui.helpers.MarkdownParser;
|
import com.habitrpg.android.habitica.ui.helpers.MarkdownParser;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
public class GroupFormActivity extends BaseActivity {
|
public class GroupFormActivity extends BaseActivity {
|
||||||
|
|
||||||
|
|
@ -36,19 +36,19 @@ public class GroupFormActivity extends BaseActivity {
|
||||||
String groupPrivacy;
|
String groupPrivacy;
|
||||||
String groupLeader;
|
String groupLeader;
|
||||||
|
|
||||||
@Bind(R.id.group_name_edittext)
|
@BindView(R.id.group_name_edittext)
|
||||||
EditText groupNameEditText;
|
EditText groupNameEditText;
|
||||||
|
|
||||||
@Bind(R.id.group_description_edittext)
|
@BindView(R.id.group_description_edittext)
|
||||||
EmojiEditText groupDescriptionEditText;
|
EmojiEditText groupDescriptionEditText;
|
||||||
|
|
||||||
@Bind(R.id.emoji_toggle_btn)
|
@BindView(R.id.emoji_toggle_btn)
|
||||||
ImageButton emojiButton;
|
ImageButton emojiButton;
|
||||||
|
|
||||||
@Bind(R.id.privacyWrapper)
|
@BindView(R.id.privacyWrapper)
|
||||||
LinearLayout privacyWrapper;
|
LinearLayout privacyWrapper;
|
||||||
|
|
||||||
@Bind(R.id.privacySpinner)
|
@BindView(R.id.privacySpinner)
|
||||||
Spinner privacySpinner;
|
Spinner privacySpinner;
|
||||||
|
|
||||||
EmojiPopup popup;
|
EmojiPopup popup;
|
||||||
|
|
|
||||||
|
|
@ -16,23 +16,23 @@ import com.habitrpg.android.habitica.ui.fragments.setup.IntroFragment;
|
||||||
import com.magicmicky.habitrpgwrapper.lib.models.ContentResult;
|
import com.magicmicky.habitrpgwrapper.lib.models.ContentResult;
|
||||||
import com.viewpagerindicator.CirclePageIndicator;
|
import com.viewpagerindicator.CirclePageIndicator;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
import retrofit.client.Response;
|
import retrofit.client.Response;
|
||||||
|
|
||||||
public class IntroActivity extends BaseActivity implements View.OnClickListener, ViewPager.OnPageChangeListener, Callback<ContentResult> {
|
public class IntroActivity extends BaseActivity implements View.OnClickListener, ViewPager.OnPageChangeListener, Callback<ContentResult> {
|
||||||
|
|
||||||
@Bind(R.id.view_pager)
|
@BindView(R.id.view_pager)
|
||||||
ViewPager pager;
|
ViewPager pager;
|
||||||
|
|
||||||
@Bind(R.id.view_pager_indicator)
|
@BindView(R.id.view_pager_indicator)
|
||||||
CirclePageIndicator indicator;
|
CirclePageIndicator indicator;
|
||||||
|
|
||||||
@Bind(R.id.skipButton)
|
@BindView(R.id.skipButton)
|
||||||
Button skipButton;
|
Button skipButton;
|
||||||
|
|
||||||
@Bind(R.id.finishButton)
|
@BindView(R.id.finishButton)
|
||||||
Button finishButton;
|
Button finishButton;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.UserAuthResponse;
|
||||||
import org.json.JSONException;
|
import org.json.JSONException;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.BindString;
|
import butterknife.BindString;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
|
|
@ -66,34 +66,34 @@ public class LoginActivity extends AppCompatActivity
|
||||||
|
|
||||||
private CallbackManager callbackManager;
|
private CallbackManager callbackManager;
|
||||||
|
|
||||||
@Bind(R.id.login_btn)
|
@BindView(R.id.login_btn)
|
||||||
Button mLoginNormalBtn;
|
Button mLoginNormalBtn;
|
||||||
|
|
||||||
@Bind(R.id.PB_AsyncTask)
|
@BindView(R.id.PB_AsyncTask)
|
||||||
ProgressBar mProgressBar;
|
ProgressBar mProgressBar;
|
||||||
|
|
||||||
@Bind(R.id.username)
|
@BindView(R.id.username)
|
||||||
EditText mUsernameET;
|
EditText mUsernameET;
|
||||||
|
|
||||||
@Bind(R.id.password)
|
@BindView(R.id.password)
|
||||||
EditText mPasswordET;
|
EditText mPasswordET;
|
||||||
|
|
||||||
@Bind(R.id.email)
|
@BindView(R.id.email)
|
||||||
EditText mEmail;
|
EditText mEmail;
|
||||||
|
|
||||||
@Bind(R.id.confirm_password)
|
@BindView(R.id.confirm_password)
|
||||||
EditText mConfirmPassword;
|
EditText mConfirmPassword;
|
||||||
|
|
||||||
@Bind(R.id.email_row)
|
@BindView(R.id.email_row)
|
||||||
TableRow mEmailRow;
|
TableRow mEmailRow;
|
||||||
|
|
||||||
@Bind(R.id.confirm_password_row)
|
@BindView(R.id.confirm_password_row)
|
||||||
TableRow mConfirmPasswordRow;
|
TableRow mConfirmPasswordRow;
|
||||||
|
|
||||||
@Bind(R.id.login_button)
|
@BindView(R.id.login_button)
|
||||||
LoginButton mFacebookLoginBtn;
|
LoginButton mFacebookLoginBtn;
|
||||||
|
|
||||||
@Bind(R.id.forgot_pw_tv)
|
@BindView(R.id.forgot_pw_tv)
|
||||||
TextView mForgotPWTV;
|
TextView mForgotPWTV;
|
||||||
|
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,7 @@ import java.util.Map;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
import retrofit.client.Response;
|
import retrofit.client.Response;
|
||||||
|
|
@ -145,15 +145,15 @@ public class MainActivity extends BaseActivity implements HabitRPGUserCallback.O
|
||||||
private static final int MIN_LEVEL_FOR_SKILLS = 11;
|
private static final int MIN_LEVEL_FOR_SKILLS = 11;
|
||||||
public static final int SELECT_CLASS_RESULT = 11;
|
public static final int SELECT_CLASS_RESULT = 11;
|
||||||
|
|
||||||
@Bind(R.id.floating_menu_wrapper)
|
@BindView(R.id.floating_menu_wrapper)
|
||||||
FrameLayout floatingMenuWrapper;
|
FrameLayout floatingMenuWrapper;
|
||||||
@Bind(R.id.toolbar)
|
@BindView(R.id.toolbar)
|
||||||
Toolbar toolbar;
|
Toolbar toolbar;
|
||||||
@Bind(R.id.detail_tabs)
|
@BindView(R.id.detail_tabs)
|
||||||
TabLayout detail_tabs;
|
TabLayout detail_tabs;
|
||||||
@Bind(R.id.avatar_with_bars)
|
@BindView(R.id.avatar_with_bars)
|
||||||
View avatar_with_bars;
|
View avatar_with_bars;
|
||||||
@Bind(R.id.overlayFrameLayout)
|
@BindView(R.id.overlayFrameLayout)
|
||||||
FrameLayout overlayFrameLayout;
|
FrameLayout overlayFrameLayout;
|
||||||
|
|
||||||
// Checkout needs to be in the Activity..
|
// Checkout needs to be in the Activity..
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,16 @@ import com.raizlabs.android.dbflow.structure.BaseModel;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class PartyInviteActivity extends BaseActivity {
|
public class PartyInviteActivity extends BaseActivity {
|
||||||
|
|
||||||
public static final int RESULT_SEND_INVITES = 100;
|
public static final int RESULT_SEND_INVITES = 100;
|
||||||
@Bind(R.id.tab_layout)
|
@BindView(R.id.tab_layout)
|
||||||
TabLayout tabLayout;
|
TabLayout tabLayout;
|
||||||
|
|
||||||
@Bind(R.id.view_pager)
|
@BindView(R.id.view_pager)
|
||||||
ViewPager viewPager;
|
ViewPager viewPager;
|
||||||
|
|
||||||
List<PartyInviteFragment> fragments = new ArrayList<>();
|
List<PartyInviteFragment> fragments = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,12 @@ import com.habitrpg.android.habitica.R;
|
||||||
import com.habitrpg.android.habitica.ui.fragments.AccountDetailsFragment;
|
import com.habitrpg.android.habitica.ui.fragments.AccountDetailsFragment;
|
||||||
import com.habitrpg.android.habitica.ui.fragments.PreferencesFragment;
|
import com.habitrpg.android.habitica.ui.fragments.PreferencesFragment;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
public class PrefsActivity extends BaseActivity implements
|
public class PrefsActivity extends BaseActivity implements
|
||||||
PreferenceFragmentCompat.OnPreferenceStartScreenCallback {
|
PreferenceFragmentCompat.OnPreferenceStartScreenCallback {
|
||||||
|
|
||||||
@Bind(R.id.toolbar)
|
@BindView(R.id.toolbar)
|
||||||
Toolbar toolbar;
|
Toolbar toolbar;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -28,20 +28,20 @@ import org.json.JSONObject;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
public class SetupActivity extends BaseActivity implements View.OnClickListener, ViewPager.OnPageChangeListener, HabitRPGUserCallback.OnUserReceived {
|
public class SetupActivity extends BaseActivity implements View.OnClickListener, ViewPager.OnPageChangeListener, HabitRPGUserCallback.OnUserReceived {
|
||||||
|
|
||||||
@Bind(R.id.view_pager)
|
@BindView(R.id.view_pager)
|
||||||
ViewPager pager;
|
ViewPager pager;
|
||||||
|
|
||||||
@Bind(R.id.skipButton)
|
@BindView(R.id.skipButton)
|
||||||
Button skipButton;
|
Button skipButton;
|
||||||
|
|
||||||
@Bind(R.id.nextButton)
|
@BindView(R.id.nextButton)
|
||||||
Button nextButton;
|
Button nextButton;
|
||||||
|
|
||||||
@Bind (R.id.previousButton)
|
@BindView(R.id.previousButton)
|
||||||
Button previousButton;
|
Button previousButton;
|
||||||
|
|
||||||
AvatarSetupFragment avatarSetupFragment;
|
AvatarSetupFragment avatarSetupFragment;
|
||||||
|
|
|
||||||
|
|
@ -17,14 +17,14 @@ import com.magicmicky.habitrpgwrapper.lib.models.tasks.Task;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
public class SkillTasksActivity extends BaseActivity {
|
public class SkillTasksActivity extends BaseActivity {
|
||||||
|
|
||||||
@Bind(R.id.viewpager)
|
@BindView(R.id.viewpager)
|
||||||
public ViewPager viewPager;
|
public ViewPager viewPager;
|
||||||
|
|
||||||
@Bind(R.id.tab_layout)
|
@BindView(R.id.tab_layout)
|
||||||
public TabLayout tabLayout;
|
public TabLayout tabLayout;
|
||||||
|
|
||||||
Map<Integer, SkillTasksRecyclerViewFragment> viewFragmentsDictionary = new HashMap<>();
|
Map<Integer, SkillTasksRecyclerViewFragment> viewFragmentsDictionary = new HashMap<>();
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
|
|
||||||
|
|
||||||
public class TaskFormActivity extends BaseActivity implements AdapterView.OnItemSelectedListener {
|
public class TaskFormActivity extends BaseActivity implements AdapterView.OnItemSelectedListener {
|
||||||
|
|
@ -87,102 +87,102 @@ public class TaskFormActivity extends BaseActivity implements AdapterView.OnItem
|
||||||
private List<CheckBox> tagCheckBoxList;
|
private List<CheckBox> tagCheckBoxList;
|
||||||
private List<String> userSelectedTagIds;
|
private List<String> userSelectedTagIds;
|
||||||
|
|
||||||
@Bind(R.id.task_value_edittext)
|
@BindView(R.id.task_value_edittext)
|
||||||
EditText taskValue;
|
EditText taskValue;
|
||||||
|
|
||||||
@Bind(R.id.task_value_layout)
|
@BindView(R.id.task_value_layout)
|
||||||
TextInputLayout taskValueLayout;
|
TextInputLayout taskValueLayout;
|
||||||
|
|
||||||
@Bind(R.id.task_checklist_wrapper)
|
@BindView(R.id.task_checklist_wrapper)
|
||||||
LinearLayout checklistWrapper;
|
LinearLayout checklistWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_difficulty_wrapper)
|
@BindView(R.id.task_difficulty_wrapper)
|
||||||
LinearLayout difficultyWrapper;
|
LinearLayout difficultyWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_attribute_wrapper)
|
@BindView(R.id.task_attribute_wrapper)
|
||||||
LinearLayout attributeWrapper;
|
LinearLayout attributeWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_main_wrapper)
|
@BindView(R.id.task_main_wrapper)
|
||||||
LinearLayout mainWrapper;
|
LinearLayout mainWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_text_edittext)
|
@BindView(R.id.task_text_edittext)
|
||||||
EmojiEditText taskText;
|
EmojiEditText taskText;
|
||||||
|
|
||||||
@Bind(R.id.task_notes_edittext)
|
@BindView(R.id.task_notes_edittext)
|
||||||
EmojiEditText taskNotes;
|
EmojiEditText taskNotes;
|
||||||
|
|
||||||
@Bind(R.id.task_difficulty_spinner)
|
@BindView(R.id.task_difficulty_spinner)
|
||||||
Spinner taskDifficultySpinner;
|
Spinner taskDifficultySpinner;
|
||||||
|
|
||||||
@Bind(R.id.task_attribute_spinner)
|
@BindView(R.id.task_attribute_spinner)
|
||||||
Spinner taskAttributeSpinner;
|
Spinner taskAttributeSpinner;
|
||||||
|
|
||||||
@Bind(R.id.btn_delete_task)
|
@BindView(R.id.btn_delete_task)
|
||||||
Button btnDelete;
|
Button btnDelete;
|
||||||
|
|
||||||
@Bind(R.id.task_startdate_layout)
|
@BindView(R.id.task_startdate_layout)
|
||||||
LinearLayout startDateLayout;
|
LinearLayout startDateLayout;
|
||||||
|
|
||||||
@Bind(R.id.task_task_wrapper)
|
@BindView(R.id.task_task_wrapper)
|
||||||
LinearLayout taskWrapper;
|
LinearLayout taskWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_positive_checkbox)
|
@BindView(R.id.task_positive_checkbox)
|
||||||
CheckBox positiveCheckBox;
|
CheckBox positiveCheckBox;
|
||||||
|
|
||||||
@Bind(R.id.task_negative_checkbox)
|
@BindView(R.id.task_negative_checkbox)
|
||||||
CheckBox negativeCheckBox;
|
CheckBox negativeCheckBox;
|
||||||
|
|
||||||
@Bind(R.id.task_actions_wrapper)
|
@BindView(R.id.task_actions_wrapper)
|
||||||
LinearLayout actionsLayout;
|
LinearLayout actionsLayout;
|
||||||
|
|
||||||
@Bind(R.id.task_weekdays_wrapper)
|
@BindView(R.id.task_weekdays_wrapper)
|
||||||
LinearLayout weekdayWrapper;
|
LinearLayout weekdayWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_frequency_spinner)
|
@BindView(R.id.task_frequency_spinner)
|
||||||
Spinner dailyFrequencySpinner;
|
Spinner dailyFrequencySpinner;
|
||||||
|
|
||||||
@Bind(R.id.task_frequency_container)
|
@BindView(R.id.task_frequency_container)
|
||||||
LinearLayout frequencyContainer;
|
LinearLayout frequencyContainer;
|
||||||
|
|
||||||
@Bind(R.id.checklist_recycler_view)
|
@BindView(R.id.checklist_recycler_view)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
@Bind(R.id.new_checklist)
|
@BindView(R.id.new_checklist)
|
||||||
EmojiEditText newCheckListEditText;
|
EmojiEditText newCheckListEditText;
|
||||||
|
|
||||||
@Bind(R.id.add_checklist_button)
|
@BindView(R.id.add_checklist_button)
|
||||||
Button button;
|
Button button;
|
||||||
|
|
||||||
@Bind(R.id.emoji_toggle_btn0)
|
@BindView(R.id.emoji_toggle_btn0)
|
||||||
ImageButton emojiToggle0;
|
ImageButton emojiToggle0;
|
||||||
|
|
||||||
@Bind(R.id.emoji_toggle_btn1)
|
@BindView(R.id.emoji_toggle_btn1)
|
||||||
ImageButton emojiToggle1;
|
ImageButton emojiToggle1;
|
||||||
|
|
||||||
|
|
||||||
ImageButton emojiToggle2;
|
ImageButton emojiToggle2;
|
||||||
|
|
||||||
@Bind(R.id.task_duedate_layout)
|
@BindView(R.id.task_duedate_layout)
|
||||||
LinearLayout dueDateLayout;
|
LinearLayout dueDateLayout;
|
||||||
|
|
||||||
@Bind(R.id.task_duedate_picker_layout)
|
@BindView(R.id.task_duedate_picker_layout)
|
||||||
LinearLayout dueDatePickerLayout;
|
LinearLayout dueDatePickerLayout;
|
||||||
|
|
||||||
@Bind(R.id.duedate_checkbox)
|
@BindView(R.id.duedate_checkbox)
|
||||||
CheckBox dueDateCheckBox;
|
CheckBox dueDateCheckBox;
|
||||||
|
|
||||||
@Bind(R.id.startdate_text_edittext)
|
@BindView(R.id.startdate_text_edittext)
|
||||||
EditText startDatePickerText;
|
EditText startDatePickerText;
|
||||||
DateEditTextListener startDateListener;
|
DateEditTextListener startDateListener;
|
||||||
|
|
||||||
@Bind(R.id.duedate_text_edittext)
|
@BindView(R.id.duedate_text_edittext)
|
||||||
EditText dueDatePickerText;
|
EditText dueDatePickerText;
|
||||||
DateEditTextListener dueDateListener;
|
DateEditTextListener dueDateListener;
|
||||||
|
|
||||||
@Bind(R.id.task_tags_wrapper)
|
@BindView(R.id.task_tags_wrapper)
|
||||||
LinearLayout tagsWrapper;
|
LinearLayout tagsWrapper;
|
||||||
|
|
||||||
@Bind(R.id.task_tags_checklist)
|
@BindView(R.id.task_tags_checklist)
|
||||||
LinearLayout tagsContainerLinearLayout;
|
LinearLayout tagsContainerLinearLayout;
|
||||||
|
|
||||||
EmojiPopup popup;
|
EmojiPopup popup;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class CustomizationRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
public class CustomizationRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
||||||
|
|
@ -122,16 +122,16 @@ public class CustomizationRecyclerViewAdapter extends RecyclerView.Adapter<Recyc
|
||||||
|
|
||||||
class CustomizationViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class CustomizationViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.card_view)
|
@BindView(R.id.card_view)
|
||||||
CardView cardView;
|
CardView cardView;
|
||||||
|
|
||||||
@Bind(R.id.linearLayout)
|
@BindView(R.id.linearLayout)
|
||||||
RelativeLayout linearLayout;
|
RelativeLayout linearLayout;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.purchaseOverlay)
|
@BindView(R.id.purchaseOverlay)
|
||||||
View purchaseOverlay;
|
View purchaseOverlay;
|
||||||
|
|
||||||
Customization customization;
|
Customization customization;
|
||||||
|
|
@ -220,10 +220,10 @@ public class CustomizationRecyclerViewAdapter extends RecyclerView.Adapter<Recyc
|
||||||
|
|
||||||
private CustomizationSet set;
|
private CustomizationSet set;
|
||||||
|
|
||||||
@Bind(R.id.label)
|
@BindView(R.id.label)
|
||||||
TextView label;
|
TextView label;
|
||||||
|
|
||||||
@Bind(R.id.purchaseSetButton)
|
@BindView(R.id.purchaseSetButton)
|
||||||
Button purchaseSetButton;
|
Button purchaseSetButton;
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.FAQArticle;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class FAQOverviewRecyclerAdapter extends RecyclerView.Adapter<FAQOverviewRecyclerAdapter.FAQArticleViewHolder> {
|
public class FAQOverviewRecyclerAdapter extends RecyclerView.Adapter<FAQOverviewRecyclerAdapter.FAQArticleViewHolder> {
|
||||||
|
|
@ -47,7 +47,7 @@ public class FAQOverviewRecyclerAdapter extends RecyclerView.Adapter<FAQOvervie
|
||||||
|
|
||||||
class FAQArticleViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class FAQArticleViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.textView)
|
@BindView(R.id.textView)
|
||||||
TextView textView;
|
TextView textView;
|
||||||
|
|
||||||
FAQArticle article;
|
FAQArticle article;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import com.raizlabs.android.dbflow.sql.language.Select;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ public class SkillTasksRecyclerViewAdapter extends RecyclerView.Adapter<SkillTas
|
||||||
|
|
||||||
SkillTaskItemCardBinding binding;
|
SkillTaskItemCardBinding binding;
|
||||||
|
|
||||||
@Bind(R.id.notesTextView)
|
@BindView(R.id.notesTextView)
|
||||||
TextView notesTextView;
|
TextView notesTextView;
|
||||||
|
|
||||||
public ViewHolder(View itemView) {
|
public ViewHolder(View itemView) {
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class SkillsRecyclerViewAdapter extends RecyclerView.Adapter<SkillsRecyclerViewAdapter.SkillViewHolder> {
|
public class SkillsRecyclerViewAdapter extends RecyclerView.Adapter<SkillsRecyclerViewAdapter.SkillViewHolder> {
|
||||||
|
|
@ -61,16 +61,16 @@ public class SkillsRecyclerViewAdapter extends RecyclerView.Adapter<SkillsRecycl
|
||||||
|
|
||||||
class SkillViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class SkillViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.skill_image)
|
@BindView(R.id.skill_image)
|
||||||
ImageView skillImageView;
|
ImageView skillImageView;
|
||||||
|
|
||||||
@Bind(R.id.skill_text)
|
@BindView(R.id.skill_text)
|
||||||
TextView skillNameTextView;
|
TextView skillNameTextView;
|
||||||
|
|
||||||
@Bind(R.id.skill_notes)
|
@BindView(R.id.skill_notes)
|
||||||
TextView skillNotesTextView;
|
TextView skillNotesTextView;
|
||||||
|
|
||||||
@Bind(R.id.price_button)
|
@BindView(R.id.price_button)
|
||||||
Button priceButton;
|
Button priceButton;
|
||||||
|
|
||||||
Skill skill;
|
Skill skill;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class EquipmentRecyclerViewAdapter extends RecyclerView.Adapter<EquipmentRecyclerViewAdapter.GearViewHolder> {
|
public class EquipmentRecyclerViewAdapter extends RecyclerView.Adapter<EquipmentRecyclerViewAdapter.GearViewHolder> {
|
||||||
|
|
@ -56,19 +56,19 @@ public int getItemCount() {
|
||||||
|
|
||||||
class GearViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class GearViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.gear_container)
|
@BindView(R.id.gear_container)
|
||||||
View gearContainer;
|
View gearContainer;
|
||||||
|
|
||||||
@Bind(R.id.gear_text)
|
@BindView(R.id.gear_text)
|
||||||
TextView gearNameTextView;
|
TextView gearNameTextView;
|
||||||
|
|
||||||
@Bind(R.id.gear_notes)
|
@BindView(R.id.gear_notes)
|
||||||
TextView gearNotesTextView;
|
TextView gearNotesTextView;
|
||||||
|
|
||||||
@Bind(R.id.gear_image)
|
@BindView(R.id.gear_image)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.equippedIndicator)
|
@BindView(R.id.equippedIndicator)
|
||||||
View equippedIndicator;
|
View equippedIndicator;
|
||||||
|
|
||||||
ItemData gear;
|
ItemData gear;
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class MountDetailRecyclerAdapter extends RecyclerView.Adapter<MountDetailRecyclerAdapter.MountViewHolder> {
|
public class MountDetailRecyclerAdapter extends RecyclerView.Adapter<MountDetailRecyclerAdapter.MountViewHolder> {
|
||||||
|
|
@ -68,16 +68,16 @@ public class MountDetailRecyclerAdapter extends RecyclerView.Adapter<MountDetail
|
||||||
class MountViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class MountViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
Mount animal;
|
Mount animal;
|
||||||
|
|
||||||
@Bind(R.id.card_view)
|
@BindView(R.id.card_view)
|
||||||
CardView cardView;
|
CardView cardView;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.titleTextView)
|
@BindView(R.id.titleTextView)
|
||||||
TextView titleView;
|
TextView titleView;
|
||||||
|
|
||||||
@Bind(R.id.ownedTextView)
|
@BindView(R.id.ownedTextView)
|
||||||
TextView ownedTextView;
|
TextView ownedTextView;
|
||||||
|
|
||||||
Resources resources;
|
Resources resources;
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class PetDetailRecyclerAdapter extends RecyclerView.Adapter<PetDetailRecyclerAdapter.PetViewHolder> {
|
public class PetDetailRecyclerAdapter extends RecyclerView.Adapter<PetDetailRecyclerAdapter.PetViewHolder> {
|
||||||
|
|
@ -76,16 +76,16 @@ public class PetDetailRecyclerAdapter extends RecyclerView.Adapter<PetDetailRecy
|
||||||
class PetViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class PetViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
Pet animal;
|
Pet animal;
|
||||||
|
|
||||||
@Bind(R.id.card_view)
|
@BindView(R.id.card_view)
|
||||||
CardView cardView;
|
CardView cardView;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.titleTextView)
|
@BindView(R.id.titleTextView)
|
||||||
TextView titleView;
|
TextView titleView;
|
||||||
|
|
||||||
@Bind(R.id.trainedProgressBar)
|
@BindView(R.id.trainedProgressBar)
|
||||||
ProgressBar trainedProgressbar;
|
ProgressBar trainedProgressbar;
|
||||||
|
|
||||||
Resources resources;
|
Resources resources;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.inventory.Animal;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class StableRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
public class StableRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
||||||
|
|
@ -79,16 +79,16 @@ public class StableRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
||||||
class StableViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class StableViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
Animal animal;
|
Animal animal;
|
||||||
|
|
||||||
@Bind(R.id.card_view)
|
@BindView(R.id.card_view)
|
||||||
CardView cardView;
|
CardView cardView;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.titleTextView)
|
@BindView(R.id.titleTextView)
|
||||||
TextView titleView;
|
TextView titleView;
|
||||||
|
|
||||||
@Bind(R.id.ownedTextView)
|
@BindView(R.id.ownedTextView)
|
||||||
TextView ownedTextView;
|
TextView ownedTextView;
|
||||||
|
|
||||||
Resources resources;
|
Resources resources;
|
||||||
|
|
@ -143,10 +143,10 @@ public class StableRecyclerAdapter extends RecyclerView.Adapter<RecyclerView.Vie
|
||||||
|
|
||||||
class SectionViewHolder extends RecyclerView.ViewHolder {
|
class SectionViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
@Bind(R.id.label)
|
@BindView(R.id.label)
|
||||||
TextView label;
|
TextView label;
|
||||||
|
|
||||||
@Bind(R.id.purchaseSetButton)
|
@BindView(R.id.purchaseSetButton)
|
||||||
Button purchaseSetButton;
|
Button purchaseSetButton;
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class CustomizationSetupAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
public class CustomizationSetupAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
||||||
|
|
@ -135,16 +135,16 @@ public class CustomizationSetupAdapter extends RecyclerView.Adapter<RecyclerView
|
||||||
|
|
||||||
class CustomizationViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class CustomizationViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.card_view)
|
@BindView(R.id.card_view)
|
||||||
CardView cardView;
|
CardView cardView;
|
||||||
|
|
||||||
@Bind(R.id.linearLayout)
|
@BindView(R.id.linearLayout)
|
||||||
RelativeLayout linearLayout;
|
RelativeLayout linearLayout;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.purchaseOverlay)
|
@BindView(R.id.purchaseOverlay)
|
||||||
View purchaseOverlay;
|
View purchaseOverlay;
|
||||||
|
|
||||||
Customization customization;
|
Customization customization;
|
||||||
|
|
@ -189,7 +189,7 @@ public class CustomizationSetupAdapter extends RecyclerView.Adapter<RecyclerView
|
||||||
|
|
||||||
class SectionViewHolder extends RecyclerView.ViewHolder {
|
class SectionViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
@Bind(R.id.label)
|
@BindView(R.id.label)
|
||||||
TextView label;
|
TextView label;
|
||||||
|
|
||||||
Context context;
|
Context context;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import com.habitrpg.android.habitica.R;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class TaskSetupAdapter extends RecyclerView.Adapter<TaskSetupAdapter.TaskViewHolder> {
|
public class TaskSetupAdapter extends RecyclerView.Adapter<TaskSetupAdapter.TaskViewHolder> {
|
||||||
|
|
@ -51,13 +51,13 @@ public class TaskSetupAdapter extends RecyclerView.Adapter<TaskSetupAdapter.Task
|
||||||
|
|
||||||
class TaskViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
class TaskViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.checkedTextView)
|
@BindView(R.id.checkedTextView)
|
||||||
TextView textView;
|
TextView textView;
|
||||||
|
|
||||||
@Bind(R.id.checkBoxHolder)
|
@BindView(R.id.checkBoxHolder)
|
||||||
RelativeLayout checkBoxHolder;
|
RelativeLayout checkBoxHolder;
|
||||||
|
|
||||||
@Bind(R.id.checkBox)
|
@BindView(R.id.checkBox)
|
||||||
CheckBox checkBox;
|
CheckBox checkBox;
|
||||||
|
|
||||||
String[] taskGroup;
|
String[] taskGroup;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ import java.lang.reflect.Field;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class ChatRecyclerViewAdapter extends RecyclerView.Adapter<ChatRecyclerViewAdapter.ChatRecyclerViewHolder> {
|
public class ChatRecyclerViewAdapter extends RecyclerView.Adapter<ChatRecyclerViewAdapter.ChatRecyclerViewHolder> {
|
||||||
|
|
@ -128,44 +128,44 @@ public class ChatRecyclerViewAdapter extends RecyclerView.Adapter<ChatRecyclerVi
|
||||||
private String groupId;
|
private String groupId;
|
||||||
|
|
||||||
// Toggle Inn State
|
// Toggle Inn State
|
||||||
@Bind(R.id.btn_toggle_inn)
|
@BindView(R.id.btn_toggle_inn)
|
||||||
@Nullable
|
@Nullable
|
||||||
Button btnToggleInn;
|
Button btnToggleInn;
|
||||||
|
|
||||||
// New Msg
|
// New Msg
|
||||||
@Bind(R.id.edit_new_message_text)
|
@BindView(R.id.edit_new_message_text)
|
||||||
@Nullable
|
@Nullable
|
||||||
EmojiEditText textNewMessage;
|
EmojiEditText textNewMessage;
|
||||||
|
|
||||||
@Bind(R.id.btn_send_message)
|
@BindView(R.id.btn_send_message)
|
||||||
@Nullable
|
@Nullable
|
||||||
Button btnSendNewMessage;
|
Button btnSendNewMessage;
|
||||||
|
|
||||||
@Bind(R.id.btn_options)
|
@BindView(R.id.btn_options)
|
||||||
@Nullable
|
@Nullable
|
||||||
ImageView btnOptions;
|
ImageView btnOptions;
|
||||||
|
|
||||||
@Bind(R.id.user_background_layout)
|
@BindView(R.id.user_background_layout)
|
||||||
@Nullable
|
@Nullable
|
||||||
LinearLayout userBackground;
|
LinearLayout userBackground;
|
||||||
|
|
||||||
@Bind(R.id.like_background_layout)
|
@BindView(R.id.like_background_layout)
|
||||||
@Nullable
|
@Nullable
|
||||||
LinearLayout likeBackground;
|
LinearLayout likeBackground;
|
||||||
|
|
||||||
@Bind(R.id.user_label)
|
@BindView(R.id.user_label)
|
||||||
@Nullable
|
@Nullable
|
||||||
TextView userLabel;
|
TextView userLabel;
|
||||||
|
|
||||||
@Bind(R.id.message_text)
|
@BindView(R.id.message_text)
|
||||||
@Nullable
|
@Nullable
|
||||||
EmojiTextView messageText;
|
EmojiTextView messageText;
|
||||||
|
|
||||||
@Bind(R.id.ago_label)
|
@BindView(R.id.ago_label)
|
||||||
@Nullable
|
@Nullable
|
||||||
TextView agoLabel;
|
TextView agoLabel;
|
||||||
|
|
||||||
@Bind(R.id.tvLikes)
|
@BindView(R.id.tvLikes)
|
||||||
@Nullable
|
@Nullable
|
||||||
TextView tvLikes;
|
TextView tvLikes;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class PartyMemberRecyclerViewAdapter extends RecyclerView.Adapter<PartyMemberRecyclerViewAdapter.MemberViewHolder> {
|
public class PartyMemberRecyclerViewAdapter extends RecyclerView.Adapter<PartyMemberRecyclerViewAdapter.MemberViewHolder> {
|
||||||
|
|
@ -56,19 +56,19 @@ public class PartyMemberRecyclerViewAdapter extends RecyclerView.Adapter<PartyMe
|
||||||
|
|
||||||
class MemberViewHolder extends RecyclerView.ViewHolder {
|
class MemberViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
||||||
@Bind(R.id.avatar)
|
@BindView(R.id.avatar)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
@Bind(R.id.username)
|
@BindView(R.id.username)
|
||||||
TextView userName;
|
TextView userName;
|
||||||
|
|
||||||
@Bind(R.id.user_lvl)
|
@BindView(R.id.user_lvl)
|
||||||
TextView lvl;
|
TextView lvl;
|
||||||
|
|
||||||
@Bind(R.id.class_label)
|
@BindView(R.id.class_label)
|
||||||
TextView classLabel;
|
TextView classLabel;
|
||||||
|
|
||||||
@Bind(R.id.class_background_layout)
|
@BindView(R.id.class_background_layout)
|
||||||
View classBackground;
|
View classBackground;
|
||||||
|
|
||||||
ValueBarBinding hpBar;
|
ValueBarBinding hpBar;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import org.greenrobot.eventbus.EventBus;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -59,16 +59,16 @@ public class PublicGuildsRecyclerViewAdapter extends RecyclerView.Adapter<Public
|
||||||
|
|
||||||
class GuildViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, Callback<Group> {
|
class GuildViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, Callback<Group> {
|
||||||
|
|
||||||
@Bind(R.id.nameTextView)
|
@BindView(R.id.nameTextView)
|
||||||
TextView nameTextView;
|
TextView nameTextView;
|
||||||
|
|
||||||
@Bind(R.id.memberCountTextView)
|
@BindView(R.id.memberCountTextView)
|
||||||
TextView memberCountTextView;
|
TextView memberCountTextView;
|
||||||
|
|
||||||
@Bind(R.id.descriptionTextView)
|
@BindView(R.id.descriptionTextView)
|
||||||
TextView descriptionTextView;
|
TextView descriptionTextView;
|
||||||
|
|
||||||
@Bind(R.id.joinleaveButton)
|
@BindView(R.id.joinleaveButton)
|
||||||
Button joinLeaveButton;
|
Button joinLeaveButton;
|
||||||
|
|
||||||
Group guild;
|
Group guild;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import com.squareup.picasso.Picasso;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class QuestCollectRecyclerViewAdapter extends RecyclerView.Adapter<QuestCollectRecyclerViewAdapter.QuestCollectViewHolder> {
|
public class QuestCollectRecyclerViewAdapter extends RecyclerView.Adapter<QuestCollectRecyclerViewAdapter.QuestCollectViewHolder> {
|
||||||
|
|
@ -55,13 +55,13 @@ public class QuestCollectRecyclerViewAdapter extends RecyclerView.Adapter<QuestC
|
||||||
}
|
}
|
||||||
|
|
||||||
class QuestCollectViewHolder extends RecyclerView.ViewHolder {
|
class QuestCollectViewHolder extends RecyclerView.ViewHolder {
|
||||||
@Bind(R.id.image)
|
@BindView(R.id.image)
|
||||||
ImageView image;
|
ImageView image;
|
||||||
|
|
||||||
@Bind(R.id.name)
|
@BindView(R.id.name)
|
||||||
TextView name;
|
TextView name;
|
||||||
|
|
||||||
@Bind(R.id.count)
|
@BindView(R.id.count)
|
||||||
TextView count;
|
TextView count;
|
||||||
|
|
||||||
View view;
|
View view;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -79,10 +79,10 @@ public class CheckListAdapter extends RecyclerView.Adapter<CheckListAdapter.Item
|
||||||
public class ItemViewHolder extends RecyclerView.ViewHolder implements
|
public class ItemViewHolder extends RecyclerView.ViewHolder implements
|
||||||
ItemTouchHelperViewHolder, Button.OnClickListener {
|
ItemTouchHelperViewHolder, Button.OnClickListener {
|
||||||
|
|
||||||
@Bind(R.id.item_edittext)
|
@BindView(R.id.item_edittext)
|
||||||
EmojiEditText checkListTextView;
|
EmojiEditText checkListTextView;
|
||||||
|
|
||||||
@Bind(R.id.delete_item_button)
|
@BindView(R.id.delete_item_button)
|
||||||
Button deleteButton;
|
Button deleteButton;
|
||||||
|
|
||||||
public ItemViewHolder(View itemView) {
|
public ItemViewHolder(View itemView) {
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -253,10 +253,10 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
||||||
|
|
||||||
public HabitItem Item;
|
public HabitItem Item;
|
||||||
|
|
||||||
@Bind(R.id.checkedTextView)
|
@BindView(R.id.checkedTextView)
|
||||||
TextView titleTextView;
|
TextView titleTextView;
|
||||||
|
|
||||||
@Bind(R.id.notesTextView)
|
@BindView(R.id.notesTextView)
|
||||||
TextView notesTextView;
|
TextView notesTextView;
|
||||||
|
|
||||||
public ViewHolder(View itemView) {
|
public ViewHolder(View itemView) {
|
||||||
|
|
@ -297,10 +297,10 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
||||||
|
|
||||||
public class HabitViewHolder extends ViewHolder<Task> {
|
public class HabitViewHolder extends ViewHolder<Task> {
|
||||||
|
|
||||||
@Bind(R.id.btnPlus)
|
@BindView(R.id.btnPlus)
|
||||||
Button btnPlus;
|
Button btnPlus;
|
||||||
|
|
||||||
@Bind(R.id.btnMinus)
|
@BindView(R.id.btnMinus)
|
||||||
Button btnMinus;
|
Button btnMinus;
|
||||||
|
|
||||||
HabitItemCardBinding binding;
|
HabitItemCardBinding binding;
|
||||||
|
|
@ -343,16 +343,16 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
||||||
|
|
||||||
public class ChecklistedViewHolder extends ViewHolder<Task> implements CompoundButton.OnCheckedChangeListener {
|
public class ChecklistedViewHolder extends ViewHolder<Task> implements CompoundButton.OnCheckedChangeListener {
|
||||||
|
|
||||||
@Bind(R.id.checkBoxHolder)
|
@BindView(R.id.checkBoxHolder)
|
||||||
RelativeLayout checkboxHolder;
|
RelativeLayout checkboxHolder;
|
||||||
|
|
||||||
@Bind(R.id.checkBox)
|
@BindView(R.id.checkBox)
|
||||||
CheckBox checkbox;
|
CheckBox checkbox;
|
||||||
|
|
||||||
@Bind(R.id.checklistView)
|
@BindView(R.id.checklistView)
|
||||||
LinearLayout checklistView;
|
LinearLayout checklistView;
|
||||||
|
|
||||||
@Bind(R.id.checklistIndicatorWrapper)
|
@BindView(R.id.checklistIndicatorWrapper)
|
||||||
RelativeLayout checklistIndicatorWrapper;
|
RelativeLayout checklistIndicatorWrapper;
|
||||||
|
|
||||||
public Boolean displayChecklist;
|
public Boolean displayChecklist;
|
||||||
|
|
@ -522,7 +522,7 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
||||||
public class RewardViewHolder extends ViewHolder<Task> {
|
public class RewardViewHolder extends ViewHolder<Task> {
|
||||||
RewardItemCardBinding binding;
|
RewardItemCardBinding binding;
|
||||||
|
|
||||||
@Bind(R.id.btnReward)
|
@BindView(R.id.btnReward)
|
||||||
Button btnReward;
|
Button btnReward;
|
||||||
|
|
||||||
public RewardViewHolder(View itemView) {
|
public RewardViewHolder(View itemView) {
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,10 @@ import android.widget.TextView;
|
||||||
|
|
||||||
import com.habitrpg.android.habitica.R;
|
import com.habitrpg.android.habitica.R;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
|
import butterknife.Unbinder;
|
||||||
|
|
||||||
public class AboutFragment extends Fragment {
|
public class AboutFragment extends Fragment {
|
||||||
|
|
||||||
|
|
@ -27,8 +28,9 @@ public class AboutFragment extends Fragment {
|
||||||
String versionName = "";
|
String versionName = "";
|
||||||
int versionCode = 0;
|
int versionCode = 0;
|
||||||
String userId = "";
|
String userId = "";
|
||||||
|
Unbinder unbinder;
|
||||||
|
|
||||||
@Bind(R.id.versionInfo)
|
@BindView(R.id.versionInfo)
|
||||||
public TextView versionInfo;
|
public TextView versionInfo;
|
||||||
|
|
||||||
@OnClick(R.id.sourceCodeLink)
|
@OnClick(R.id.sourceCodeLink)
|
||||||
|
|
@ -82,7 +84,7 @@ public class AboutFragment extends Fragment {
|
||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
|
|
||||||
ButterKnife.bind(this, view);
|
unbinder = ButterKnife.bind(this, view);
|
||||||
|
|
||||||
Activity activity = getActivity();
|
Activity activity = getActivity();
|
||||||
try {
|
try {
|
||||||
|
|
@ -122,7 +124,6 @@ public class AboutFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
ButterKnife.unbind(this);
|
unbinder.unbind();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,10 @@ import org.solovyev.android.checkout.Purchases;
|
||||||
import org.solovyev.android.checkout.RequestListener;
|
import org.solovyev.android.checkout.RequestListener;
|
||||||
import org.solovyev.android.checkout.Sku;
|
import org.solovyev.android.checkout.Sku;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
|
import butterknife.Unbinder;
|
||||||
import io.fabric.sdk.android.Fabric;
|
import io.fabric.sdk.android.Fabric;
|
||||||
|
|
||||||
public class GemsPurchaseFragment extends BaseMainFragment {
|
public class GemsPurchaseFragment extends BaseMainFragment {
|
||||||
|
|
@ -38,9 +39,11 @@ public class GemsPurchaseFragment extends BaseMainFragment {
|
||||||
|
|
||||||
private BillingRequests billingRequests;
|
private BillingRequests billingRequests;
|
||||||
|
|
||||||
@Bind(R.id.btn_purchase_gems)
|
@BindView(R.id.btn_purchase_gems)
|
||||||
Button btnPurchaseGems;
|
Button btnPurchaseGems;
|
||||||
|
|
||||||
|
private Unbinder unbinder;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAttach(Context context) {
|
public void onAttach(Context context) {
|
||||||
super.onAttach(context);
|
super.onAttach(context);
|
||||||
|
|
@ -56,7 +59,7 @@ public class GemsPurchaseFragment extends BaseMainFragment {
|
||||||
|
|
||||||
View v = inflater.inflate(R.layout.fragment_gem_purchase, container, false);
|
View v = inflater.inflate(R.layout.fragment_gem_purchase, container, false);
|
||||||
|
|
||||||
ButterKnife.bind(this, v);
|
unbinder = ButterKnife.bind(this, v);
|
||||||
|
|
||||||
btnPurchaseGems.setEnabled(false);
|
btnPurchaseGems.setEnabled(false);
|
||||||
ViewHelper.SetBackgroundTint(btnPurchaseGems, ContextCompat.getColor(container.getContext(), R.color.brand));
|
ViewHelper.SetBackgroundTint(btnPurchaseGems, ContextCompat.getColor(container.getContext(), R.color.brand));
|
||||||
|
|
@ -188,7 +191,7 @@ public class GemsPurchaseFragment extends BaseMainFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
ButterKnife.unbind(this);
|
unbinder.unbind();
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface Listener {
|
public interface Listener {
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@ import android.webkit.WebView;
|
||||||
import com.habitrpg.android.habitica.BuildConfig;
|
import com.habitrpg.android.habitica.BuildConfig;
|
||||||
import com.habitrpg.android.habitica.R;
|
import com.habitrpg.android.habitica.R;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class NewsFragment extends BaseMainFragment {
|
public class NewsFragment extends BaseMainFragment {
|
||||||
|
|
||||||
private View view;
|
private View view;
|
||||||
|
|
||||||
@Bind(R.id.news_webview)
|
@BindView(R.id.news_webview)
|
||||||
WebView newsWebview;
|
WebView newsWebview;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,9 @@ import org.greenrobot.eventbus.Subscribe;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
import butterknife.Unbinder;
|
||||||
|
|
||||||
public class SkillsFragment extends BaseMainFragment {
|
public class SkillsFragment extends BaseMainFragment {
|
||||||
|
|
||||||
|
|
@ -56,16 +57,17 @@ public class SkillsFragment extends BaseMainFragment {
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView mRecyclerView;
|
RecyclerView mRecyclerView;
|
||||||
|
|
||||||
SkillsRecyclerViewAdapter adapter;
|
SkillsRecyclerViewAdapter adapter;
|
||||||
|
Unbinder unbinder;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
|
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
|
|
||||||
ButterKnife.bind(this, view);
|
unbinder = ButterKnife.bind(this, view);
|
||||||
|
|
||||||
mRecyclerView.setLayoutManager(new LinearLayoutManager(activity));
|
mRecyclerView.setLayoutManager(new LinearLayoutManager(activity));
|
||||||
mRecyclerView.setAdapter(adapter);
|
mRecyclerView.setAdapter(adapter);
|
||||||
|
|
@ -145,7 +147,7 @@ public class SkillsFragment extends BaseMainFragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
ButterKnife.unbind(this);
|
unbinder.unbind();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,14 +12,14 @@ import com.habitrpg.android.habitica.ui.fragments.BaseMainFragment;
|
||||||
import com.habitrpg.android.habitica.ui.helpers.MarkdownParser;
|
import com.habitrpg.android.habitica.ui.helpers.MarkdownParser;
|
||||||
import com.magicmicky.habitrpgwrapper.lib.models.FAQArticle;
|
import com.magicmicky.habitrpgwrapper.lib.models.FAQArticle;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class FAQDetailFragment extends BaseMainFragment {
|
public class FAQDetailFragment extends BaseMainFragment {
|
||||||
@Bind(R.id.questionTextView)
|
@BindView(R.id.questionTextView)
|
||||||
TextView questionTextView;
|
TextView questionTextView;
|
||||||
|
|
||||||
@Bind(R.id.answerTextView)
|
@BindView(R.id.answerTextView)
|
||||||
TextView answerTextView;
|
TextView answerTextView;
|
||||||
|
|
||||||
private FAQArticle article;
|
private FAQArticle article;
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ import com.raizlabs.android.dbflow.sql.language.Select;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class FAQOverviewFragment extends BaseMainFragment {
|
public class FAQOverviewFragment extends BaseMainFragment {
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
FAQOverviewRecyclerAdapter adapter;
|
FAQOverviewRecyclerAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -29,14 +29,14 @@ import org.greenrobot.eventbus.Subscribe;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class StableRecyclerFragment extends BaseFragment {
|
public class StableRecyclerFragment extends BaseFragment {
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
public RecyclerViewEmptySupport recyclerView;
|
public RecyclerViewEmptySupport recyclerView;
|
||||||
|
|
||||||
@Bind(R.id.empty_view)
|
@BindView(R.id.empty_view)
|
||||||
public TextView emptyView;
|
public TextView emptyView;
|
||||||
|
|
||||||
public StableRecyclerAdapter adapter;
|
public StableRecyclerAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import com.raizlabs.android.dbflow.sql.language.Where;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -34,7 +34,7 @@ public class AvatarCustomizationFragment extends BaseMainFragment {
|
||||||
public String category;
|
public String category;
|
||||||
public String activeCustomization;
|
public String activeCustomization;
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
CustomizationRecyclerViewAdapter adapter;
|
CustomizationRecyclerViewAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -28,34 +28,34 @@ public class AvatarOverviewFragment extends BaseMainFragment implements AdapterV
|
||||||
|
|
||||||
FragmentAvatarOverviewBinding viewBinding;
|
FragmentAvatarOverviewBinding viewBinding;
|
||||||
|
|
||||||
@Bind(R.id.avatar_size_spinner)
|
@BindView(R.id.avatar_size_spinner)
|
||||||
Spinner avatarSizeSpinner;
|
Spinner avatarSizeSpinner;
|
||||||
|
|
||||||
@Bind(R.id.avatar_shirt)
|
@BindView(R.id.avatar_shirt)
|
||||||
View avatarShirtView;
|
View avatarShirtView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_skin)
|
@BindView(R.id.avatar_skin)
|
||||||
View avatarSkinView;
|
View avatarSkinView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_color)
|
@BindView(R.id.avatar_hair_color)
|
||||||
View avatarHairColorView;
|
View avatarHairColorView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_base)
|
@BindView(R.id.avatar_hair_base)
|
||||||
View avatarHairBaseView;
|
View avatarHairBaseView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_bangs)
|
@BindView(R.id.avatar_hair_bangs)
|
||||||
View avatarHairBangsView;
|
View avatarHairBangsView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_flower)
|
@BindView(R.id.avatar_hair_flower)
|
||||||
View avatarHairFlowerView;
|
View avatarHairFlowerView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_beard)
|
@BindView(R.id.avatar_hair_beard)
|
||||||
View avatarHairBeardView;
|
View avatarHairBeardView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_hair_mustache)
|
@BindView(R.id.avatar_hair_mustache)
|
||||||
View avatarHairMustacheView;
|
View avatarHairMustacheView;
|
||||||
|
|
||||||
@Bind(R.id.avatar_background)
|
@BindView(R.id.avatar_background)
|
||||||
View avatarBackgroundView;
|
View avatarBackgroundView;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import com.raizlabs.android.dbflow.sql.language.Select;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class EquipmentDetailFragment extends BaseMainFragment {
|
public class EquipmentDetailFragment extends BaseMainFragment {
|
||||||
|
|
@ -26,7 +26,7 @@ public class EquipmentDetailFragment extends BaseMainFragment {
|
||||||
public String equippedGear;
|
public String equippedGear;
|
||||||
public Boolean isCostume;
|
public Boolean isCostume;
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
EquipmentRecyclerViewAdapter adapter;
|
EquipmentRecyclerViewAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -24,17 +24,17 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class EquipmentOverviewFragment extends BaseMainFragment implements TransactionListener<List<ItemData>> {
|
public class EquipmentOverviewFragment extends BaseMainFragment implements TransactionListener<List<ItemData>> {
|
||||||
|
|
||||||
FragmentEquipmentOverviewBinding viewBinding;
|
FragmentEquipmentOverviewBinding viewBinding;
|
||||||
|
|
||||||
@Bind(R.id.battle_gear_group)
|
@BindView(R.id.battle_gear_group)
|
||||||
View battleGearGroupView;
|
View battleGearGroupView;
|
||||||
|
|
||||||
@Bind(R.id.costume_group)
|
@BindView(R.id.costume_group)
|
||||||
View costumeGroupView;
|
View costumeGroupView;
|
||||||
|
|
||||||
View battleGearHeadView;
|
View battleGearHeadView;
|
||||||
|
|
@ -55,7 +55,7 @@ public class EquipmentOverviewFragment extends BaseMainFragment implements Trans
|
||||||
View costumeWeaponView;
|
View costumeWeaponView;
|
||||||
View costumeShieldView;
|
View costumeShieldView;
|
||||||
|
|
||||||
@Bind(R.id.costume_switch)
|
@BindView(R.id.costume_switch)
|
||||||
Switch costumeSwitch;
|
Switch costumeSwitch;
|
||||||
|
|
||||||
HashMap<String, String> nameMapping;
|
HashMap<String, String> nameMapping;
|
||||||
|
|
|
||||||
|
|
@ -34,17 +34,17 @@ import org.w3c.dom.Text;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class ItemRecyclerFragment extends BaseFragment {
|
public class ItemRecyclerFragment extends BaseFragment {
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
public RecyclerViewEmptySupport recyclerView;
|
public RecyclerViewEmptySupport recyclerView;
|
||||||
|
|
||||||
@Bind(R.id.empty_view)
|
@BindView(R.id.empty_view)
|
||||||
public TextView emptyView;
|
public TextView emptyView;
|
||||||
|
|
||||||
@Bind(R.id.titleTextView)
|
@BindView(R.id.titleTextView)
|
||||||
public TextView titleView;
|
public TextView titleView;
|
||||||
public ItemRecyclerAdapter adapter;
|
public ItemRecyclerAdapter adapter;
|
||||||
public String itemType;
|
public String itemType;
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import com.raizlabs.android.dbflow.sql.language.Where;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class AvatarSetupFragment extends BaseFragment {
|
public class AvatarSetupFragment extends BaseFragment {
|
||||||
|
|
@ -34,10 +34,10 @@ public class AvatarSetupFragment extends BaseFragment {
|
||||||
public int width;
|
public int width;
|
||||||
|
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
@Bind(R.id.avatarView)
|
@BindView(R.id.avatarView)
|
||||||
ImageView avatarView;
|
ImageView avatarView;
|
||||||
|
|
||||||
CustomizationSetupAdapter adapter;
|
CustomizationSetupAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -12,18 +12,18 @@ import android.widget.TextView;
|
||||||
import com.habitrpg.android.habitica.R;
|
import com.habitrpg.android.habitica.R;
|
||||||
import com.habitrpg.android.habitica.ui.fragments.BaseFragment;
|
import com.habitrpg.android.habitica.ui.fragments.BaseFragment;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class IntroFragment extends BaseFragment {
|
public class IntroFragment extends BaseFragment {
|
||||||
|
|
||||||
@Bind(R.id.titleTextView)
|
@BindView(R.id.titleTextView)
|
||||||
TextView titleTextView;
|
TextView titleTextView;
|
||||||
|
|
||||||
@Bind(R.id.descriptionTextView)
|
@BindView(R.id.descriptionTextView)
|
||||||
TextView descriptionTextView;
|
TextView descriptionTextView;
|
||||||
|
|
||||||
@Bind(R.id.imageView)
|
@BindView(R.id.imageView)
|
||||||
ImageView imageView;
|
ImageView imageView;
|
||||||
|
|
||||||
Drawable image;
|
Drawable image;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
|
||||||
public class TaskSetupFragment extends BaseFragment {
|
public class TaskSetupFragment extends BaseFragment {
|
||||||
|
|
@ -33,7 +33,7 @@ public class TaskSetupFragment extends BaseFragment {
|
||||||
|
|
||||||
private Object[][] tasks;
|
private Object[][] tasks;
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
TaskSetupAdapter adapter;
|
TaskSetupAdapter adapter;
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ import org.greenrobot.eventbus.Subscribe;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -104,10 +104,10 @@ public class ChatListFragment extends BaseFragment implements SwipeRefreshLayout
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bind(R.id.chat_list)
|
@BindView(R.id.chat_list)
|
||||||
RecyclerView mRecyclerView;
|
RecyclerView mRecyclerView;
|
||||||
|
|
||||||
@Bind(R.id.chat_refresh_layout)
|
@BindView(R.id.chat_refresh_layout)
|
||||||
SwipeRefreshLayout swipeRefreshLayout;
|
SwipeRefreshLayout swipeRefreshLayout;
|
||||||
|
|
||||||
LinearLayoutManager layoutManager;
|
LinearLayoutManager layoutManager;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.Group;
|
||||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||||
import com.magicmicky.habitrpgwrapper.lib.models.inventory.QuestContent;
|
import com.magicmicky.habitrpgwrapper.lib.models.inventory.QuestContent;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
|
|
@ -37,9 +37,9 @@ public class GroupInformationFragment extends Fragment {
|
||||||
private View view;
|
private View view;
|
||||||
FragmentGroupInfoBinding viewBinding;
|
FragmentGroupInfoBinding viewBinding;
|
||||||
APIHelper mAPIHelper;
|
APIHelper mAPIHelper;
|
||||||
@Bind(R.id.questMemberView)
|
@BindView(R.id.questMemberView)
|
||||||
LinearLayout questMemberView;
|
LinearLayout questMemberView;
|
||||||
@Bind(R.id.collectionStats)
|
@BindView(R.id.collectionStats)
|
||||||
RecyclerView collectionStats;
|
RecyclerView collectionStats;
|
||||||
private Group group;
|
private Group group;
|
||||||
private HabitRPGUser user;
|
private HabitRPGUser user;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ import com.raizlabs.android.dbflow.sql.language.Where;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -28,13 +28,13 @@ import retrofit.client.Response;
|
||||||
|
|
||||||
public class GuildsOverviewFragment extends BaseMainFragment implements Callback<ArrayList<Group>>, View.OnClickListener, SwipeRefreshLayout.OnRefreshListener {
|
public class GuildsOverviewFragment extends BaseMainFragment implements Callback<ArrayList<Group>>, View.OnClickListener, SwipeRefreshLayout.OnRefreshListener {
|
||||||
|
|
||||||
@Bind(R.id.my_guilds_listview)
|
@BindView(R.id.my_guilds_listview)
|
||||||
LinearLayout guildsListView;
|
LinearLayout guildsListView;
|
||||||
|
|
||||||
@Bind(R.id.publicGuildsButton)
|
@BindView(R.id.publicGuildsButton)
|
||||||
Button publicGuildsButton;
|
Button publicGuildsButton;
|
||||||
|
|
||||||
@Bind(R.id.chat_refresh_layout)
|
@BindView(R.id.chat_refresh_layout)
|
||||||
SwipeRefreshLayout swipeRefreshLayout;
|
SwipeRefreshLayout swipeRefreshLayout;
|
||||||
|
|
||||||
private List<Group> guilds;
|
private List<Group> guilds;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import com.magicmicky.habitrpgwrapper.lib.models.Group;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import retrofit.Callback;
|
import retrofit.Callback;
|
||||||
import retrofit.RetrofitError;
|
import retrofit.RetrofitError;
|
||||||
|
|
@ -27,7 +27,7 @@ public class PublicGuildsFragment extends BaseMainFragment implements Callback<A
|
||||||
ArrayList<String> memberGuildIDs;
|
ArrayList<String> memberGuildIDs;
|
||||||
ArrayList <Group> guilds;
|
ArrayList <Group> guilds;
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
private View view;
|
private View view;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import com.habitrpg.android.habitica.ui.fragments.BaseFragment;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.OnClick;
|
import butterknife.OnClick;
|
||||||
|
|
||||||
|
|
@ -24,10 +24,10 @@ public class PartyInviteFragment extends BaseFragment {
|
||||||
|
|
||||||
public boolean isEmailInvite;
|
public boolean isEmailInvite;
|
||||||
|
|
||||||
@Bind(R.id.inviteDescription)
|
@BindView(R.id.inviteDescription)
|
||||||
TextView inviteDescription;
|
TextView inviteDescription;
|
||||||
|
|
||||||
@Bind(R.id.invitationWrapper)
|
@BindView(R.id.invitationWrapper)
|
||||||
LinearLayout invitationWrapper;
|
LinearLayout invitationWrapper;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@ import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import butterknife.Bind;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
|
import butterknife.Unbinder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by Negue on 15.09.2015.
|
* Created by Negue on 15.09.2015.
|
||||||
|
|
@ -36,8 +37,9 @@ public class PartyMemberListFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private View view;
|
private View view;
|
||||||
|
private Unbinder unbinder;
|
||||||
|
|
||||||
@Bind(R.id.recyclerView)
|
@BindView(R.id.recyclerView)
|
||||||
RecyclerView mRecyclerView;
|
RecyclerView mRecyclerView;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
|
|
@ -53,7 +55,7 @@ public class PartyMemberListFragment extends Fragment {
|
||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
|
|
||||||
ButterKnife.bind(this, view);
|
unbinder = ButterKnife.bind(this, view);
|
||||||
|
|
||||||
mRecyclerView.setLayoutManager(new LinearLayoutManager(ctx));
|
mRecyclerView.setLayoutManager(new LinearLayoutManager(ctx));
|
||||||
viewAdapter = new PartyMemberRecyclerViewAdapter();
|
viewAdapter = new PartyMemberRecyclerViewAdapter();
|
||||||
|
|
@ -73,8 +75,7 @@ public class PartyMemberListFragment extends Fragment {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroyView() {
|
||||||
super.onDestroyView();
|
super.onDestroyView();
|
||||||
ButterKnife.unbind(this);
|
unbinder.unbind();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue