mirror of
http://galexander.org/git/simplesshd.git
synced 2024-11-27 09:48:08 +00:00
port is a string now because none of the stock preference widgets will do
a number...
This commit is contained in:
parent
bbcb048996
commit
e49cf68feb
@ -17,7 +17,13 @@ public class Prefs {
|
|||||||
return pref.getBoolean("onboot", false);
|
return pref.getBoolean("onboot", false);
|
||||||
}
|
}
|
||||||
public static int get_port() {
|
public static int get_port() {
|
||||||
return pref.getInt("port", 2222);
|
int ret;
|
||||||
|
try {
|
||||||
|
ret = Integer.valueOf(pref.getString("port", "2222"));
|
||||||
|
} catch (Exception e) {
|
||||||
|
ret = 2222;
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
public static String get_path() {
|
public static String get_path() {
|
||||||
return pref.getString("path", "/sdcard/ssh");
|
return pref.getString("path", "/sdcard/ssh");
|
||||||
|
Loading…
Reference in New Issue
Block a user