1
0
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:
Greg Alexander 2019-09-21 15:39:48 -04:00
parent 616052e03f
commit 51ca87cc18
2 changed files with 4 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}