mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-06 20:29:10 +01:00
DroidFish: Display the options menu when long pressing the M button.
This commit is contained in:
parent
a4b5950a8a
commit
3be7f6db04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user