GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: update LeakCanary + use ContextCompat color · munho/RxJava-Android-Samples@1e88b58

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app
    • build.gradle
    • src/main/java/com/morihacky/android/rxjava/fragments
      • FormValidationCombineLatestFragment.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/build.gradle‎

Copy file name to clipboardExpand all lines: app/build.gradle
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ dependencies {
5151

5252
// ----------------------------------
5353

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'
5656
}
5757

5858
android {
Collapse file

‎app/src/main/java/com/morihacky/android/rxjava/fragments/FormValidationCombineLatestFragment.java‎

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 numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import android.os.Bundle;
77
import android.support.annotation.Nullable;
8+
import android.support.v4.content.ContextCompat;
89
import android.view.LayoutInflater;
910
import android.view.View;
1011
import android.view.ViewGroup;
@@ -72,9 +73,11 @@ private void _combineLatestEvents() {
7273
@Override
7374
public void onNext(Boolean formValid) {
7475
if (formValid) {
75-
_btnValidIndicator.setBackgroundColor(getResources().getColor(R.color.blue));
76+
_btnValidIndicator.setBackgroundColor(
77+
ContextCompat.getColor(getContext(), R.color.blue));
7678
} else {
77-
_btnValidIndicator.setBackgroundColor(getResources().getColor(R.color.gray));
79+
_btnValidIndicator.setBackgroundColor(
80+
ContextCompat.getColor(getContext(), R.color.gray));
7881
}
7982
}
8083

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.