From 6a34b45cbf474fe00232c34a15651e1053e137be Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Fri, 5 Apr 2019 15:23:37 -0500 Subject: [PATCH] Fix geocode error toast --- .../main/java/org/tasks/location/LocationPickerActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/tasks/location/LocationPickerActivity.java b/app/src/main/java/org/tasks/location/LocationPickerActivity.java index 14b8646f4..fcc7d1226 100644 --- a/app/src/main/java/org/tasks/location/LocationPickerActivity.java +++ b/app/src/main/java/org/tasks/location/LocationPickerActivity.java @@ -320,7 +320,6 @@ public class LocationPickerActivity extends InjectingAppCompatActivity }) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) - .doOnError(e -> toaster.longToast(e.getMessage())) .doFinally(() -> loadingIndicator.setVisibility(View.GONE)) .subscribe( addresses -> { @@ -345,7 +344,8 @@ public class LocationPickerActivity extends InjectingAppCompatActivity } place.setName(formatCoordinates(place)); returnPlace(place); - })); + }, + e -> toaster.longToast(e.getMessage()))); } @OnClick(R.id.search)