GeezerVison is showing github.com — fix: update LeakCanary + use ContextCompat color · ridermoth/RxJava-Android-Samples@1e88b58
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/java/com/morihacky/android/rxjava/fragments
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: app/build.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,8 +51,8 @@ dependencies { |
51 | 51 |
|
52 | 52 | // ---------------------------------- |
53 | 53 |
|
54 | | - debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3' |
55 | | - releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3' |
| 54 | + debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' |
| 55 | + releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' |
56 | 56 | } |
57 | 57 |
|
58 | 58 | android { |
|
Collapse file
Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/fragments/FormValidationCombineLatestFragment.java +5-2Lines changed: 5 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
5 | 5 |
|
6 | 6 | import android.os.Bundle; |
7 | 7 | import android.support.annotation.Nullable; |
| 8 | +import android.support.v4.content.ContextCompat; |
8 | 9 | import android.view.LayoutInflater; |
9 | 10 | import android.view.View; |
10 | 11 | import android.view.ViewGroup; |
@@ -72,9 +73,11 @@ private void _combineLatestEvents() { |
72 | 73 | @Override |
73 | 74 | public void onNext(Boolean formValid) { |
74 | 75 | if (formValid) { |
75 | | - _btnValidIndicator.setBackgroundColor(getResources().getColor(R.color.blue)); |
| 76 | + _btnValidIndicator.setBackgroundColor( |
| 77 | + ContextCompat.getColor(getContext(), R.color.blue)); |
76 | 78 | } else { |
77 | | - _btnValidIndicator.setBackgroundColor(getResources().getColor(R.color.gray)); |
| 79 | + _btnValidIndicator.setBackgroundColor( |
| 80 | + ContextCompat.getColor(getContext(), R.color.gray)); |
78 | 81 | } |
79 | 82 | } |
80 | 83 |
|
|