diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-06-21 21:27:09 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-21 21:27:09 +0200 |
commit | 392a754b44c35a51b70a79c0a1a265d5769c365f (patch) | |
tree | bcf862ed8af6990f2d3d73bfb9df17a78e36d10e /src/main/java/eu/siacs/conversations/ui/startUI.java | |
parent | eec3582aa7d92706fa5a519fc7110c6ac66b519d (diff) |
reworked permissions
* ask only for necessary permissions on start
* ask for location/microphone when requested
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/startUI.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/startUI.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/startUI.java b/src/main/java/eu/siacs/conversations/ui/startUI.java index c2758054b..e33e75401 100644 --- a/src/main/java/eu/siacs/conversations/ui/startUI.java +++ b/src/main/java/eu/siacs/conversations/ui/startUI.java @@ -20,17 +20,13 @@ import eu.siacs.conversations.R; import pub.devrel.easypermissions.AfterPermissionGranted; import pub.devrel.easypermissions.EasyPermissions; -public class startUI extends AppCompatActivity +public class StartUI extends AppCompatActivity implements EasyPermissions.PermissionCallbacks { private static final int NeededPermissions = 1000; String[] perms = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE, - Manifest.permission.READ_CONTACTS, - Manifest.permission.RECORD_AUDIO, - Manifest.permission.ACCESS_COARSE_LOCATION, - Manifest.permission.ACCESS_FINE_LOCATION, }; @Override @@ -110,4 +106,4 @@ public class startUI extends AppCompatActivity protected void onDestroy() { super.onDestroy(); } -} +}
\ No newline at end of file |