2
0
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:
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
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)