aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-08-05 12:36:43 +0200
committerChristian Schneppe <christian@pix-art.de>2018-08-05 12:36:43 +0200
commitdcfe04a05512bfa51626d3c4f5a4ae357962441d (patch)
tree49208a23bd41a4934d99550c2d90607611072d9b /src/main/java/de/pixart/messenger
parent3f55a61c250c5b9dd81dd4dcfd4c9531369d2152 (diff)
add location to permission check, too
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java3
1 files changed, 3 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;
}