mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-03 19:50:55 +00:00
whoops, using a static function to differentiate derived classes...dumb.
use a variable instead.
This commit is contained in:
parent
616052e03f
commit
51ca87cc18
@ -36,6 +36,7 @@ public class SimpleSSHD extends Activity
|
||||
public static SimpleSSHD curr = null;
|
||||
public static String app_private = null;
|
||||
private UpdaterThread updater = null;
|
||||
public static boolean is_tv = false;
|
||||
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@ -317,8 +318,4 @@ public class SimpleSSHD extends Activity
|
||||
public void onRequestPermissionsResult(int code, String[] perms, int[] results) {
|
||||
Prefs.set_requested(); /* whatever result, don't ask again */
|
||||
}
|
||||
|
||||
public static boolean is_tv() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,8 @@ package org.galexander.sshd;
|
||||
|
||||
public class SimpleSSHDTV extends SimpleSSHD
|
||||
{
|
||||
public static boolean is_tv() {
|
||||
return true;
|
||||
public SimpleSSHDTV() {
|
||||
super();
|
||||
is_tv = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user