GeezerVison is showing github.com — update ButterKnife 5.1.1 -> 7.0.1 · f-evil/RxJava-Android-Samples@3515c6a
File treeExpand file treeCollapse file tree Open diff view settings src/main/java/com/morihacky/android/rxjava
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: app/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ dependencies { | 10 | 10 | compile 'io.reactivex:rxjava-math:1.0.0' | 11 | 11 | compile 'com.jakewharton.rxbinding:rxbinding:0.2.0' | 12 | 12 |
| 13 | | - compile 'com.jakewharton:butterknife:5.1.1' | | 13 | + compile 'com.jakewharton:butterknife:7.0.1' | 14 | 14 | compile 'com.jakewharton.timber:timber:2.4.2' | 15 | 15 | compile 'com.squareup.retrofit:retrofit:1.6.1' | 16 | 16 | compile 'com.squareup.okhttp:okhttp:2.0.0' | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/BufferDemoFragment.java +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | import android.widget.Button; | 11 | 11 | import android.widget.ListView; | 12 | 12 | import butterknife.ButterKnife; | 13 | | -import butterknife.InjectView; | | 13 | +import butterknife.Bind; | 14 | 14 | import com.jakewharton.rxbinding.view.RxView; | 15 | 15 | import com.jakewharton.rxbinding.view.ViewClickEvent; | 16 | 16 | import com.morihacky.android.rxjava.R; | | 41 | 41 | public class BufferDemoFragment | 42 | 42 | extends BaseFragment { | 43 | 43 |
| 44 | | - @InjectView(R.id.list_threading_log) ListView _logsList; | 45 | | - @InjectView(R.id.btn_start_operation) Button _tapBtn; | | 44 | + @Bind(R.id.list_threading_log) ListView _logsList; | | 45 | + @Bind(R.id.btn_start_operation) Button _tapBtn; | 46 | 46 |
| 47 | 47 | private LogAdapter _adapter; | 48 | 48 | private List<String> _logs; | @@ -72,7 +72,7 @@ public View onCreateView(LayoutInflater inflater, | 72 | 72 | @Nullable ViewGroup container, | 73 | 73 | @Nullable Bundle savedInstanceState) { | 74 | 74 | View layout = inflater.inflate(R.layout.fragment_buffer, container, false); | 75 | | - ButterKnife.inject(this, layout); | | 75 | + ButterKnife.bind(this, layout); | 76 | 76 | return layout; | 77 | 77 | } | 78 | 78 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/ConcurrencyWithSchedulersDemoFragment.java +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | import android.widget.ListView; | 13 | 13 | import android.widget.ProgressBar; | 14 | 14 | import butterknife.ButterKnife; | 15 | | -import butterknife.InjectView; | | 15 | +import butterknife.Bind; | 16 | 16 | import butterknife.OnClick; | 17 | 17 | import com.morihacky.android.rxjava.R; | 18 | 18 | import java.util.ArrayList; | | 28 | 28 | public class ConcurrencyWithSchedulersDemoFragment | 29 | 29 | extends BaseFragment { | 30 | 30 |
| 31 | | - @InjectView(R.id.progress_operation_running) ProgressBar _progress; | 32 | | - @InjectView(R.id.list_threading_log) ListView _logsList; | | 31 | + @Bind(R.id.progress_operation_running) ProgressBar _progress; | | 32 | + @Bind(R.id.list_threading_log) ListView _logsList; | 33 | 33 |
| 34 | 34 | private LogAdapter _adapter; | 35 | 35 | private List<String> _logs; | @@ -54,7 +54,7 @@ public View onCreateView(LayoutInflater inflater, | 54 | 54 | @Nullable ViewGroup container, | 55 | 55 | @Nullable Bundle savedInstanceState) { | 56 | 56 | View layout = inflater.inflate(R.layout.fragment_concurrency_schedulers, container, false); | 57 | | - ButterKnife.inject(this, layout); | | 57 | + ButterKnife.bind(this, layout); | 58 | 58 | return layout; | 59 | 59 | } | 60 | 60 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/DebounceSearchEmitterFragment.java +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | import android.widget.EditText; | 13 | 13 | import android.widget.ListView; | 14 | 14 | import butterknife.ButterKnife; | 15 | | -import butterknife.InjectView; | | 15 | +import butterknife.Bind; | 16 | 16 | import butterknife.OnClick; | 17 | 17 | import com.jakewharton.rxbinding.widget.RxTextView; | 18 | 18 | import com.jakewharton.rxbinding.widget.TextViewTextChangeEvent; | | 30 | 30 | public class DebounceSearchEmitterFragment | 31 | 31 | extends BaseFragment { | 32 | 32 |
| 33 | | - @InjectView(R.id.list_threading_log) ListView _logsList; | 34 | | - @InjectView(R.id.input_txt_debounce) EditText _inputSearchText; | | 33 | + @Bind(R.id.list_threading_log) ListView _logsList; | | 34 | + @Bind(R.id.input_txt_debounce) EditText _inputSearchText; | 35 | 35 |
| 36 | 36 | private LogAdapter _adapter; | 37 | 37 | private List<String> _logs; | @@ -51,7 +51,7 @@ public View onCreateView(LayoutInflater inflater, | 51 | 51 | @Nullable ViewGroup container, | 52 | 52 | @Nullable Bundle savedInstanceState) { | 53 | 53 | View layout = inflater.inflate(R.layout.fragment_debounce, container, false); | 54 | | - ButterKnife.inject(this, layout); | | 54 | + ButterKnife.bind(this, layout); | 55 | 55 | return layout; | 56 | 56 | } | 57 | 57 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/DoubleBindingTextViewFragment.java +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import android.widget.EditText; | 9 | 9 | import android.widget.TextView; | 10 | 10 | import butterknife.ButterKnife; | 11 | | -import butterknife.InjectView; | | 11 | +import butterknife.Bind; | 12 | 12 | import butterknife.OnTextChanged; | 13 | 13 | import com.morihacky.android.rxjava.R; | 14 | 14 | import rx.Subscription; | | 20 | 20 | public class DoubleBindingTextViewFragment | 21 | 21 | extends BaseFragment { | 22 | 22 |
| 23 | | - @InjectView(R.id.double_binding_num1) EditText _number1; | 24 | | - @InjectView(R.id.double_binding_num2) EditText _number2; | 25 | | - @InjectView(R.id.double_binding_result) TextView _result; | | 23 | + @Bind(R.id.double_binding_num1) EditText _number1; | | 24 | + @Bind(R.id.double_binding_num2) EditText _number2; | | 25 | + @Bind(R.id.double_binding_result) TextView _result; | 26 | 26 |
| 27 | 27 | Subscription _subscription; | 28 | 28 | PublishSubject<Float> _resultEmitterSubject; | @@ -32,7 +32,7 @@ public View onCreateView(LayoutInflater inflater, | 32 | 32 | @Nullable ViewGroup container, | 33 | 33 | @Nullable Bundle savedInstanceState) { | 34 | 34 | View layout = inflater.inflate(R.layout.fragment_double_binding_textview, container, false); | 35 | | - ButterKnife.inject(this, layout); | | 35 | + ButterKnife.bind(this, layout); | 36 | 36 |
| 37 | 37 | _resultEmitterSubject = PublishSubject.create(); | 38 | 38 | _subscription = _resultEmitterSubject.asObservable().subscribe(new Action1<Float>() { | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/ExponentialBackoffFragment.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import android.view.ViewGroup; | 9 | 9 | import android.widget.ListView; | 10 | 10 | import butterknife.ButterKnife; | 11 | | -import butterknife.InjectView; | | 11 | +import butterknife.Bind; | 12 | 12 | import butterknife.OnClick; | 13 | 13 | import com.morihacky.android.rxjava.R; | 14 | 14 | import com.morihacky.android.rxjava.RxUtils; | | 29 | 29 | public class ExponentialBackoffFragment | 30 | 30 | extends BaseFragment { | 31 | 31 |
| 32 | | - @InjectView(R.id.list_threading_log) ListView _logList; | | 32 | + @Bind(R.id.list_threading_log) ListView _logList; | 33 | 33 | private LogAdapter _adapter; | 34 | 34 | private List<String> _logs; | 35 | 35 |
| @@ -52,7 +52,7 @@ public View onCreateView(LayoutInflater inflater, | 52 | 52 | @Nullable ViewGroup container, | 53 | 53 | @Nullable Bundle savedInstanceState) { | 54 | 54 | View layout = inflater.inflate(R.layout.fragment_exponential_backoff, container, false); | 55 | | - ButterKnife.inject(this, layout); | | 55 | + ButterKnife.bind(this, layout); | 56 | 56 | return layout; | 57 | 57 | } | 58 | 58 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/FormValidationCombineLatestFragment.java +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 8 | 8 | import android.widget.EditText; | 9 | 9 | import android.widget.TextView; | 10 | 10 | import butterknife.ButterKnife; | 11 | | -import butterknife.InjectView; | | 11 | +import butterknife.Bind; | 12 | 12 | import com.jakewharton.rxbinding.widget.RxTextView; | 13 | 13 | import com.morihacky.android.rxjava.R; | 14 | 14 | import rx.Observable; | | 23 | 23 | public class FormValidationCombineLatestFragment | 24 | 24 | extends BaseFragment { | 25 | 25 |
| 26 | | - @InjectView(R.id.btn_demo_form_valid) TextView _btnValidIndicator; | 27 | | - @InjectView(R.id.demo_combl_email) EditText _email; | 28 | | - @InjectView(R.id.demo_combl_password) EditText _password; | 29 | | - @InjectView(R.id.demo_combl_num) EditText _number; | | 26 | + @Bind(R.id.btn_demo_form_valid) TextView _btnValidIndicator; | | 27 | + @Bind(R.id.demo_combl_email) EditText _email; | | 28 | + @Bind(R.id.demo_combl_password) EditText _password; | | 29 | + @Bind(R.id.demo_combl_num) EditText _number; | 30 | 30 |
| 31 | 31 | private Observable<CharSequence> _emailChangeObservable; | 32 | 32 | private Observable<CharSequence> _passwordChangeObservable; | @@ -41,7 +41,7 @@ public View onCreateView(LayoutInflater inflater, | 41 | 41 | View layout = inflater.inflate(R.layout.fragment_form_validation_comb_latest, | 42 | 42 | container, | 43 | 43 | false); | 44 | | - ButterKnife.inject(this, layout); | | 44 | + ButterKnife.bind(this, layout); | 45 | 45 |
| 46 | 46 | _emailChangeObservable = RxTextView.textChanges(_email).skip(1); | 47 | 47 | _passwordChangeObservable = RxTextView.textChanges(_password).skip(1); | |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/MainFragment.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ public View onCreateView(LayoutInflater inflater, | 20 | 20 | @Nullable ViewGroup container, | 21 | 21 | @Nullable Bundle savedInstanceState) { | 22 | 22 | View layout = inflater.inflate(R.layout.fragment_main, container, false); | 23 | | - ButterKnife.inject(this, layout); | | 23 | + ButterKnife.bind(this, layout); | 24 | 24 | return layout; | 25 | 25 | } | 26 | 26 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/PollingFragment.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | import android.widget.ArrayAdapter; | 12 | 12 | import android.widget.ListView; | 13 | 13 | import butterknife.ButterKnife; | 14 | | -import butterknife.InjectView; | | 14 | +import butterknife.Bind; | 15 | 15 | import butterknife.OnClick; | 16 | 16 | import com.morihacky.android.rxjava.R; | 17 | 17 | import java.util.ArrayList; | @@ -30,7 +30,7 @@ public class PollingFragment | 30 | 30 |
| 31 | 31 | public static final int INITIAL_DELAY = 0; | 32 | 32 | public static final int POLLING_INTERVAL = 1000; | 33 | | - @InjectView(R.id.list_threading_log) ListView _logsList; | | 33 | + @Bind(R.id.list_threading_log) ListView _logsList; | 34 | 34 |
| 35 | 35 | private LogAdapter _adapter; | 36 | 36 | private List<String> _logs; | @@ -55,7 +55,7 @@ public View onCreateView(LayoutInflater inflater, | 55 | 55 | @Nullable ViewGroup container, | 56 | 56 | @Nullable Bundle savedInstanceState) { | 57 | 57 | View layout = inflater.inflate(R.layout.fragment_polling, container, false); | 58 | | - ButterKnife.inject(this, layout); | | 58 | + ButterKnife.bind(this, layout); | 59 | 59 | return layout; | 60 | 60 | } | 61 | 61 |
| |
Collapse file Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/PseudoCacheConcatFragment.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | import android.widget.ArrayAdapter; | 10 | 10 | import android.widget.ListView; | 11 | 11 | import butterknife.ButterKnife; | 12 | | -import butterknife.InjectView; | | 12 | +import butterknife.Bind; | 13 | 13 | import butterknife.OnClick; | 14 | 14 | import com.morihacky.android.rxjava.R; | 15 | 15 | import com.morihacky.android.rxjava.retrofit.Contributor; | | 31 | 31 | public class PseudoCacheConcatFragment | 32 | 32 | extends BaseFragment { | 33 | 33 |
| 34 | | - @InjectView(R.id.log_list) ListView _resultList; | | 34 | + @Bind(R.id.log_list) ListView _resultList; | 35 | 35 |
| 36 | 36 | private Subscription _subscription = null; | 37 | 37 | private HashMap<String, Long> _contributionMap = null; | @@ -42,7 +42,7 @@ public View onCreateView(LayoutInflater inflater, | 42 | 42 | @Nullable ViewGroup container, | 43 | 43 | @Nullable Bundle savedInstanceState) { | 44 | 44 | View layout = inflater.inflate(R.layout.fragment_pseudo_cache_concat, container, false); | 45 | | - ButterKnife.inject(this, layout); | | 45 | + ButterKnife.bind(this, layout); | 46 | 46 | _initializeCache(); | 47 | 47 | return layout; | 48 | 48 | } | |
|