mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 22: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
|
@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)
|
||||||
|
Reference in New Issue
Block a user