aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2020-02-06 19:57:52 +0100
committerChristian Schneppe <christian.schneppe@pix-art.de>2020-02-06 19:57:52 +0100
commit9a9fc4ed5e1944788564b28773a685febea2a21c (patch)
tree787281cc3016f20e90b42137ee09554b3ddff510 /src/main/java/de
parent2059bdff818a4023857000fedaeb371744dd44f4 (diff)
fix crash/stacktrace in Share/ShowLocationActivity
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java2
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java b/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
index c10dd0f9e..1231ac86e 100644
--- a/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShareLocationActivity.java
@@ -44,8 +44,8 @@ public class ShareLocationActivity extends LocationActivity implements LocationL
double latitude = location.getLatitude();
String address = "";
if (latitude != 0 && longitude != 0) {
- Geocoder geoCoder = new Geocoder(context, Locale.getDefault());
try {
+ Geocoder geoCoder = new Geocoder(context, Locale.getDefault());
List<Address> addresses = geoCoder.getFromLocation(latitude, longitude, 1);
if (addresses != null && addresses.size() > 0) {
Address Address = addresses.get(0);
diff --git a/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java b/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java
index 3b4305f47..2c878aeff 100644
--- a/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java
@@ -40,8 +40,8 @@ public class ShowLocationActivity extends XmppActivity {
double latitude = location.getLatitude();
String address = "";
if (latitude != 0 && longitude != 0) {
- Geocoder geoCoder = new Geocoder(context, Locale.getDefault());
try {
+ Geocoder geoCoder = new Geocoder(context, Locale.getDefault());
List<Address> addresses = geoCoder.getFromLocation(latitude, longitude, 1);
if (addresses != null && addresses.size() > 0) {
Address Address = addresses.get(0);