whoops, using a static function to differentiate derived classes...dumb.

use a variable instead.
master
Greg Alexander 5 years ago
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…
Cancel
Save