diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-08-05 12:36:43 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-08-05 12:36:43 +0200 |
commit | dcfe04a05512bfa51626d3c4f5a4ae357962441d (patch) | |
tree | 49208a23bd41a4934d99550c2d90607611072d9b /src/main | |
parent | 3f55a61c250c5b9dd81dd4dcfd4c9531369d2152 (diff) |
add location to permission check, too
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 3 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index dfc1d4d78..743c96826 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -1658,6 +1658,9 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke res = R.string.no_microphone_permission; } else if (Manifest.permission.CAMERA.equals(firstDenied)) { res = R.string.no_camera_permission; + } else if (Manifest.permission.ACCESS_COARSE_LOCATION.equals(firstDenied) + || Manifest.permission.ACCESS_FINE_LOCATION.equals(firstDenied)) { + res = R.string.no_location_permission; } else { res = R.string.no_storage_permission; } diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c17784722..5b5876823 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -807,4 +807,5 @@ <string name="conference_destroyed">This group chat has been destroyed</string> <string name="no_application_found_to_view_contact">No application found to view contact</string> <string name="welcome_server_info">We recommend the use of blabber.im as your provider.</string> + <string name="no_location_permission">Pix-Art Messenger needs access to location services</string> </resources> |