From f2ddc2a235a45c4f13ba877412f420372f866483 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 7 Aug 2019 09:42:12 +1000 Subject: [PATCH] Disable unused permissions --- .../thoughtcrime/securesms/registration/WelcomeActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/registration/WelcomeActivity.java b/src/org/thoughtcrime/securesms/registration/WelcomeActivity.java index 8b995ed43a..88ee770172 100644 --- a/src/org/thoughtcrime/securesms/registration/WelcomeActivity.java +++ b/src/org/thoughtcrime/securesms/registration/WelcomeActivity.java @@ -6,11 +6,12 @@ import android.os.Bundle; import android.support.annotation.NonNull; import org.thoughtcrime.securesms.BaseActionBarActivity; -import network.loki.messenger.R; import org.thoughtcrime.securesms.permissions.Permissions; import org.thoughtcrime.securesms.util.CommunicationActions; import org.thoughtcrime.securesms.util.TextSecurePreferences; +import network.loki.messenger.R; + public class WelcomeActivity extends BaseActionBarActivity { @Override @@ -33,7 +34,7 @@ public class WelcomeActivity extends BaseActionBarActivity { private void onContinueClicked() { Permissions.with(this) .request(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE) - .ifNecessary() + .ifNecessary(false) .withRationaleDialog(getString(R.string.activity_landing_permission_dialog_message), R.drawable.ic_folder_white_48dp) .onAnyResult(() -> { TextSecurePreferences.setHasSeenWelcomeScreen(WelcomeActivity.this, true);