aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-06-10 22:58:20 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-10 22:58:20 +0200
commitaca07ad7418ed366acb144788844a63d9d154f41 (patch)
tree1ce55d49d8a3976f8fbf2f7e91cec7f70dcf3120 /src/main/res
parent5f08b8f3b4abb131a4a196e54f648d97546af985 (diff)
check and request all needed permissions on startup
>= SDK 23 (Marshmallow)
Diffstat (limited to '')
-rw-r--r--src/main/res/layout/activity_start_ui.xml14
-rw-r--r--src/main/res/values-de/strings.xml3
-rw-r--r--src/main/res/values/strings.xml3
3 files changed, 20 insertions, 0 deletions
diff --git a/src/main/res/layout/activity_start_ui.xml b/src/main/res/layout/activity_start_ui.xml
new file mode 100644
index 000000000..da07b0f43
--- /dev/null
+++ b/src/main/res/layout/activity_start_ui.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <ProgressBar
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/progressBar"
+ android:layout_centerVertical="true"
+ android:layout_centerHorizontal="true" />
+
+</RelativeLayout>
diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml
index 57e4f0e9d..497897a8a 100644
--- a/src/main/res/values-de/strings.xml
+++ b/src/main/res/values-de/strings.xml
@@ -620,5 +620,8 @@
<string name="pref_broadcast_last_activity">Zuletzt gesehen senden</string>
<string name="pref_broadcast_last_activity_summary">Lasse deine Kontakte wissen, wann du Pix-Art Messenger nutzt</string>
<string name="invite_user">In Pix-Art Messenger einladen</string>
+ <string name="request_permissions_message">Pix-Art Messenger wird dich nach ein paar Berechtigungen fragen. Es ist wichtig, dass du alle Berechtigungen erlaubst, um alle Funktionen nutzen zu können. Falls du eine dieser Berechtigungen ablehnst wird sich die App schließen.</string>
+ <string name="request_permissions_message_again">Du hast eine oder alle Berechtigungen, welche für Pix-Art Messenger benötigt werden abgelehnt. Willst du zu den Einstellungen springen, um diese Berechtigungen zu erlauben? Falls du eine dieser Berechtigungen ablehnst wird sich die App schließen.</string>
+ <string name="request_permissions_title">Pix-Art Messenger Berechtigungen</string>
</resources>
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 550bdbe47..3566ca0d3 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -660,4 +660,7 @@
<string name="pref_broadcast_last_activity_summary">Let all your contacts know when use Pix-Art Messenger</string>
<string name="pref_privacy">Privacy</string>
<string name="invite_user">Invite to Pix-Art Messenger</string>
+ <string name="request_permissions_title">Pix-Art Messenger permissions</string>
+ <string name="request_permissions_message">Pix-Art Messenger will ask you to allow a few permissions. It is important that you allow all these permissions to use all features of this messenger. If you deny any of these permissions the app will close itself.</string>
+ <string name="request_permissions_message_again">You have denied some or all permissions needed for Pix-Art Messenger. Would you like to jump to the settings and allow these permissions? If you denie any of these permissions, the app will close itself.</string>
</resources>