mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
DroidFish: Avoid static variables.
Removed unnecessary "static" from member variables in DroidFish.java.
This commit is contained in:
parent
817fbe471a
commit
e75d83de94
|
@ -187,7 +187,7 @@ public class DroidFish extends Activity
|
||||||
// FIXME!!! Use two engines in engine/engine games
|
// FIXME!!! Use two engines in engine/engine games
|
||||||
|
|
||||||
private ChessBoardPlay cb;
|
private ChessBoardPlay cb;
|
||||||
private static DroidChessController ctrl = null;
|
private DroidChessController ctrl = null;
|
||||||
private boolean mShowThinking;
|
private boolean mShowThinking;
|
||||||
private boolean mShowStats;
|
private boolean mShowStats;
|
||||||
private boolean fullPVLines;
|
private boolean fullPVLines;
|
||||||
|
@ -219,7 +219,7 @@ public class DroidFish extends Activity
|
||||||
private TextView whiteTitleText, blackTitleText, engineTitleText;
|
private TextView whiteTitleText, blackTitleText, engineTitleText;
|
||||||
private View firstTitleLine, secondTitleLine;
|
private View firstTitleLine, secondTitleLine;
|
||||||
private TextView whiteFigText, blackFigText, summaryTitleText;
|
private TextView whiteFigText, blackFigText, summaryTitleText;
|
||||||
private static Dialog moveListMenuDlg;
|
private Dialog moveListMenuDlg;
|
||||||
|
|
||||||
private DrawerLayout drawerLayout;
|
private DrawerLayout drawerLayout;
|
||||||
private ListView leftDrawer;
|
private ListView leftDrawer;
|
||||||
|
@ -4063,7 +4063,7 @@ public class DroidFish extends Activity
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onLinkClick(int offs) {
|
public boolean onLinkClick(int offs) {
|
||||||
if (ctrl == null)
|
if (df.ctrl == null)
|
||||||
return false;
|
return false;
|
||||||
Map.Entry<Integer, Node> e = offs2Node.floorEntry(offs);
|
Map.Entry<Integer, Node> e = offs2Node.floorEntry(offs);
|
||||||
if (e == null)
|
if (e == null)
|
||||||
|
@ -4080,10 +4080,10 @@ public class DroidFish extends Activity
|
||||||
// On android 4.1 this onClick method is called
|
// On android 4.1 this onClick method is called
|
||||||
// even when you long click the move list. The test
|
// even when you long click the move list. The test
|
||||||
// below works around the problem.
|
// below works around the problem.
|
||||||
Dialog mlmd = moveListMenuDlg;
|
Dialog mlmd = df.moveListMenuDlg;
|
||||||
if ((mlmd == null) || !mlmd.isShowing()) {
|
if ((mlmd == null) || !mlmd.isShowing()) {
|
||||||
df.setAutoMode(AutoMode.OFF);
|
df.setAutoMode(AutoMode.OFF);
|
||||||
ctrl.goNode(node);
|
df.ctrl.goNode(node);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user