aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java3
-rw-r--r--src/main/res/values/strings.xml1
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>