2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 15:15:09 +00:00

Sftp permissions aren't optional

This commit is contained in:
Albert Vaca Cintora
2023-03-05 22:04:34 +01:00
parent 0f4643e502
commit f97216c797

View File

@@ -62,12 +62,12 @@ public class SftpPlugin extends Plugin implements SharedPreferences.OnSharedPref
} }
@Override @Override
public boolean checkOptionalPermissions() { public boolean checkRequiredPermissions() {
return SftpSettingsFragment.getStorageInfoList(context, this).size() != 0; return SftpSettingsFragment.getStorageInfoList(context, this).size() != 0;
} }
@Override @Override
public AlertDialogFragment getOptionalPermissionExplanationDialog() { public AlertDialogFragment getPermissionExplanationDialog() {
return new DeviceSettingsAlertDialogFragment.Builder() return new DeviceSettingsAlertDialogFragment.Builder()
.setTitle(getDisplayName()) .setTitle(getDisplayName())
.setMessage(R.string.sftp_saf_permission_explanation) .setMessage(R.string.sftp_saf_permission_explanation)