Skip to content
Snippets Groups Projects
Commit 6bbae7a9 authored by Augusto Bott's avatar Augusto Bott
Browse files

New dropbearmulti binary, minor clean-up, added a few TODO entries on the code

parent fdcbf599
No related branches found
No related tags found
No related merge requests found
No preview for this file type
Loading
Loading
@@ -192,6 +192,8 @@ public class Base {
}
 
/* public static File getHomeDir() {
// TODO - move it out of dropbearmulti
// TODO - (currently, it's statically compiled to be /mnt/sdcard)
return homeDir;
}
*/
Loading
Loading
Loading
Loading
@@ -289,7 +289,8 @@ public class Util {
return 0;
}*/
public static void mysleep(int ms) {
/* public static void mysleep(int ms) {
try {
Thread.sleep(ms);
} catch (InterruptedException e) {
Loading
Loading
@@ -297,6 +298,7 @@ public class Util {
e.printStackTrace();
}
}
*/
 
synchronized public static void takeWakeLock() {
if(wakeLock == null) {
Loading
Loading
@@ -324,8 +326,6 @@ public class Util {
}*/
}
 
// http://code.google.com/p/swiftp/source/browse/#svn/trunk/src/org/swiftp
synchronized public static void takeWifiLock() {
if(wifiLock == null) {
WifiManager manager = (WifiManager)Base.getContext().getSystemService(Context.WIFI_SERVICE);
Loading
Loading
Loading
Loading
@@ -43,8 +43,6 @@ public class NumberPickerPreference extends DialogPreference {
// Log.d(TAG, "which: " + which);
switch (which) {
case DialogInterface.BUTTON_POSITIVE:
// NumberPicker picker = (NumberPicker) getDialog().findViewById(R.id.pref_num_picker);
// picker = (NumberPicker) getDialog().findViewById(R.id.pref_num_picker);
picker.onClick(null);
saveValue(picker.getCurrent());
break;
Loading
Loading
@@ -60,6 +58,8 @@ public class NumberPickerPreference extends DialogPreference {
}
public int getValue() {
// TODO - store that on preference/string/whatever
// TODO - (as long as it's the same as everything else)
return getSharedPreferences().getInt("dropbear_port", 2222);
}
}
Loading
Loading
@@ -55,7 +55,6 @@ public class FileArrayAdapter extends ArrayAdapter<Option>{
if(t2!=null) {
t2.setText(o.getData());
if (o.getData().equalsIgnoreCase("folder")) {
// i.setImageResource(R.drawable.folder);
i.setImageResource(R.drawable.directory_icon);
// i.setVisibility(View.VISIBLE);
} else {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment