DroidFish: Display the options menu when long pressing the M button.

This commit is contained in:
Peter Osterlund 2014-10-04 17:56:00 +00:00
parent a4b5950a8a
commit 3be7f6db04

View File

@ -832,12 +832,6 @@ public class DroidFish extends Activity implements GUIInterface {
return true;
}
});
thinking.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
openOptionsMenu();
}
});
custom1Button = (ImageButton)findViewById(R.id.custom1Button);
custom1ButtonActions.setImageButton(custom1Button, this);
@ -853,6 +847,13 @@ public class DroidFish extends Activity implements GUIInterface {
showDialog(GAME_MODE_DIALOG);
}
});
modeButton.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
openOptionsMenu();
return true;
}
});
undoButton = (ImageButton)findViewById(R.id.undoButton);
undoButton.setOnClickListener(new OnClickListener() {
@Override