diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-04 21:27:33 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-04 21:27:33 +0100 |
commit | d47ca73deca373abc15f13482fc0bf12becd35d7 (patch) | |
tree | 295e0b5167df36b2821ed85f45e7f88390ce5c23 /src/main | |
parent | 513bc9a3a07e88c0b461dbd58e6480ae1dbe50ec (diff) |
we don't need location permissions for showing locations
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java b/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java index 67641238d..2f844e107 100644 --- a/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ShowLocationActivity.java @@ -1,18 +1,15 @@ package de.pixart.messenger.ui; -import android.Manifest; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; -import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.net.Uri; import android.os.AsyncTask; -import android.os.Build; import android.os.Bundle; import android.preference.PreferenceManager; import android.text.TextUtils; @@ -59,15 +56,7 @@ public class ShowLocationActivity extends Activity { this.location.setLatitude(latitude); this.location.setLongitude(longitude); } - - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED - || checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) { - markAndCenterOnLocation(location); - } - } else { - markAndCenterOnLocation(location); - } + markAndCenterOnLocation(location); } private void markAndCenterOnLocation(final Location location) { |