mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 17:32:40 +01:00
DroidFish: Fixed crash on Android 1.6 and 2.1 when long pressing the analysis area when the computer was not analyzing.
This commit is contained in:
@@ -419,8 +419,10 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||||||
});
|
});
|
||||||
thinking.setOnLongClickListener(new OnLongClickListener() {
|
thinking.setOnLongClickListener(new OnLongClickListener() {
|
||||||
public boolean onLongClick(View v) {
|
public boolean onLongClick(View v) {
|
||||||
|
if (!pvMoves.isEmpty()) {
|
||||||
removeDialog(THINKING_MENU_DIALOG);
|
removeDialog(THINKING_MENU_DIALOG);
|
||||||
showDialog(THINKING_MENU_DIALOG);
|
showDialog(THINKING_MENU_DIALOG);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1499,8 +1501,6 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||||||
return alert;
|
return alert;
|
||||||
}
|
}
|
||||||
case THINKING_MENU_DIALOG: {
|
case THINKING_MENU_DIALOG: {
|
||||||
if (pvMoves.isEmpty())
|
|
||||||
return null;
|
|
||||||
final int ADD_ANALYSIS = 0;
|
final int ADD_ANALYSIS = 0;
|
||||||
final int MULTIPV_DEC = 1;
|
final int MULTIPV_DEC = 1;
|
||||||
final int MULTIPV_INC = 2;
|
final int MULTIPV_INC = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user