mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-01-31 01:20:46 +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:
parent
48f70b3eed
commit
d2741c31c5
|
@ -419,8 +419,10 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
});
|
||||
thinking.setOnLongClickListener(new OnLongClickListener() {
|
||||
public boolean onLongClick(View v) {
|
||||
removeDialog(THINKING_MENU_DIALOG);
|
||||
showDialog(THINKING_MENU_DIALOG);
|
||||
if (!pvMoves.isEmpty()) {
|
||||
removeDialog(THINKING_MENU_DIALOG);
|
||||
showDialog(THINKING_MENU_DIALOG);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
@ -1499,8 +1501,6 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
return alert;
|
||||
}
|
||||
case THINKING_MENU_DIALOG: {
|
||||
if (pvMoves.isEmpty())
|
||||
return null;
|
||||
final int ADD_ANALYSIS = 0;
|
||||
final int MULTIPV_DEC = 1;
|
||||
final int MULTIPV_INC = 2;
|
||||
|
|
Loading…
Reference in New Issue
Block a user