mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 14:15:14 +00:00
Renamed sftp plugin to "filesystem browser"
This commit is contained in:
@@ -16,7 +16,7 @@ public class SftpPlugin extends Plugin {
|
|||||||
private static final SimpleSftpServer server = new SimpleSftpServer();
|
private static final SimpleSftpServer server = new SimpleSftpServer();
|
||||||
|
|
||||||
/*static {
|
/*static {
|
||||||
PluginFactory.registerPlugin(BatteryPlugin.class);
|
PluginFactory.registerPlugin(SftpPlugin.class);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -54,7 +54,7 @@ public class SftpPlugin extends Plugin {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onPackageReceived(NetworkPackage np) {
|
public boolean onPackageReceived(NetworkPackage np) {
|
||||||
if (!np.getType().equals(NetworkPackage.PACKAGE_TYPE_SFTP)) return false;
|
if (!np.getType().equals(NetworkPackage.PACKAGE_TYPE_SFTP)) return false;
|
||||||
//
|
|
||||||
if (np.getBoolean("startBrowsing")) {
|
if (np.getBoolean("startBrowsing")) {
|
||||||
if (server.start()) {
|
if (server.start()) {
|
||||||
NetworkPackage np2 = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_SFTP);
|
NetworkPackage np2 = new NetworkPackage(NetworkPackage.PACKAGE_TYPE_SFTP);
|
||||||
|
@@ -5,8 +5,8 @@
|
|||||||
<string name="pref_plugin_telephony_desc">Send notifications for SMS and calls</string>
|
<string name="pref_plugin_telephony_desc">Send notifications for SMS and calls</string>
|
||||||
<string name="pref_plugin_battery">Battery report</string>
|
<string name="pref_plugin_battery">Battery report</string>
|
||||||
<string name="pref_plugin_battery_desc">Periodically report battery status</string>
|
<string name="pref_plugin_battery_desc">Periodically report battery status</string>
|
||||||
<string name="pref_plugin_sftp">SFTP access</string>
|
<string name="pref_plugin_sftp">Filesystem expose</string>
|
||||||
<string name="pref_plugin_sftp_desc">Possibility to browse filesystem through SFTP</string>
|
<string name="pref_plugin_sftp_desc">Allows to browse the phone\'s filesystem remotely</string>
|
||||||
<string name="pref_plugin_clipboard">Clipboard sync</string>
|
<string name="pref_plugin_clipboard">Clipboard sync</string>
|
||||||
<string name="pref_plugin_clipboard_desc">Share the clipboard content</string>
|
<string name="pref_plugin_clipboard_desc">Share the clipboard content</string>
|
||||||
<string name="pref_plugin_mpris">Multimedia remote controls</string>
|
<string name="pref_plugin_mpris">Multimedia remote controls</string>
|
||||||
|
Reference in New Issue
Block a user