mirror of
http://galexander.org/git/simplesshd.git
synced 2025-07-15 15:28:05 +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 SimpleSSHD curr = null;
|
||||||
public static String app_private = null;
|
public static String app_private = null;
|
||||||
private UpdaterThread updater = null;
|
private UpdaterThread updater = null;
|
||||||
|
public static boolean is_tv = false;
|
||||||
|
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@ -317,8 +318,4 @@ public class SimpleSSHD extends Activity
|
|||||||
public void onRequestPermissionsResult(int code, String[] perms, int[] results) {
|
public void onRequestPermissionsResult(int code, String[] perms, int[] results) {
|
||||||
Prefs.set_requested(); /* whatever result, don't ask again */
|
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 class SimpleSSHDTV extends SimpleSSHD
|
||||||
{
|
{
|
||||||
public static boolean is_tv() {
|
public SimpleSSHDTV() {
|
||||||
return true;
|
super();
|
||||||
|
is_tv = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user