File tree 2 files changed +7
-4
lines changed
src/main/java/com/morihacky/android/rxjava/fragments
2 files changed +7
-4
lines changed 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 {
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
You can’t perform that action at this time.
0 commit comments