diff options
author | Samuel Tardieu <sam@rfc1149.net> | 2015-01-07 14:26:36 +0100 |
---|---|---|
committer | Samuel Tardieu <sam@rfc1149.net> | 2015-01-07 14:36:11 +0100 |
commit | d3dc2be5040ea3f4846d9b948c3a0f95b9359f71 (patch) | |
tree | d43249e2df5539e079eafbc43494208fe8739bdf /main/src/cgeo/geocaching/connector | |
parent | 61385d66a8b5b0d16febc6f0642aea54d808628a (diff) | |
download | cgeo-d3dc2be5040ea3f4846d9b948c3a0f95b9359f71.zip cgeo-d3dc2be5040ea3f4846d9b948c3a0f95b9359f71.tar.gz cgeo-d3dc2be5040ea3f4846d9b948c3a0f95b9359f71.tar.bz2 |
Use bindView instead of bindActivity/bindFragment where appropriate
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r-- | main/src/cgeo/geocaching/connector/gc/RecaptchaHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/RecaptchaHandler.java b/main/src/cgeo/geocaching/connector/gc/RecaptchaHandler.java index 1258ddd..5fc3c2b 100644 --- a/main/src/cgeo/geocaching/connector/gc/RecaptchaHandler.java +++ b/main/src/cgeo/geocaching/connector/gc/RecaptchaHandler.java @@ -11,7 +11,7 @@ import cgeo.geocaching.utils.RxUtils; import org.apache.commons.io.IOUtils; import rx.Observable; -import rx.android.app.AppObservable; +import rx.android.view.ViewObservable; import rx.functions.Action1; import rx.functions.Func0; @@ -64,7 +64,7 @@ public class RecaptchaHandler extends Handler { return Observable.empty(); } }); - AppObservable.bindActivity(activity, captcha).subscribeOn(RxUtils.networkScheduler).subscribe(new Action1<Bitmap>() { + ViewObservable.bindView(imageView, captcha).subscribeOn(RxUtils.networkScheduler).subscribe(new Action1<Bitmap>() { @Override public void call(final Bitmap bitmap) { imageView.setImageBitmap(bitmap); |