mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 21:45:20 +00:00
Disable unused permissions
This commit is contained in:
parent
b68f7a851c
commit
f2ddc2a235
@ -6,11 +6,12 @@ import android.os.Bundle;
|
|||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
|
|
||||||
import org.thoughtcrime.securesms.BaseActionBarActivity;
|
import org.thoughtcrime.securesms.BaseActionBarActivity;
|
||||||
import network.loki.messenger.R;
|
|
||||||
import org.thoughtcrime.securesms.permissions.Permissions;
|
import org.thoughtcrime.securesms.permissions.Permissions;
|
||||||
import org.thoughtcrime.securesms.util.CommunicationActions;
|
import org.thoughtcrime.securesms.util.CommunicationActions;
|
||||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||||
|
|
||||||
|
import network.loki.messenger.R;
|
||||||
|
|
||||||
public class WelcomeActivity extends BaseActionBarActivity {
|
public class WelcomeActivity extends BaseActionBarActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -33,7 +34,7 @@ public class WelcomeActivity extends BaseActionBarActivity {
|
|||||||
private void onContinueClicked() {
|
private void onContinueClicked() {
|
||||||
Permissions.with(this)
|
Permissions.with(this)
|
||||||
.request(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE)
|
.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)
|
.withRationaleDialog(getString(R.string.activity_landing_permission_dialog_message), R.drawable.ic_folder_white_48dp)
|
||||||
.onAnyResult(() -> {
|
.onAnyResult(() -> {
|
||||||
TextSecurePreferences.setHasSeenWelcomeScreen(WelcomeActivity.this, true);
|
TextSecurePreferences.setHasSeenWelcomeScreen(WelcomeActivity.this, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user