mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Sftp permissions aren't optional
This commit is contained in:
@@ -62,12 +62,12 @@ public class SftpPlugin extends Plugin implements SharedPreferences.OnSharedPref
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkOptionalPermissions() {
|
||||
public boolean checkRequiredPermissions() {
|
||||
return SftpSettingsFragment.getStorageInfoList(context, this).size() != 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AlertDialogFragment getOptionalPermissionExplanationDialog() {
|
||||
public AlertDialogFragment getPermissionExplanationDialog() {
|
||||
return new DeviceSettingsAlertDialogFragment.Builder()
|
||||
.setTitle(getDisplayName())
|
||||
.setMessage(R.string.sftp_saf_permission_explanation)
|
||||
|
Reference in New Issue
Block a user