mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
fix doubled response to alert button: dismiss != negative
This commit is contained in:
parent
f66fa5f75a
commit
03492b97e8
1 changed files with 4 additions and 3 deletions
|
@ -1036,13 +1036,14 @@ public class BoardDelegate extends DelegateBase
|
||||||
{
|
{
|
||||||
boolean handled = false;
|
boolean handled = false;
|
||||||
boolean positive = AlertDialog.BUTTON_POSITIVE == which;
|
boolean positive = AlertDialog.BUTTON_POSITIVE == which;
|
||||||
DbgUtils.logf("BoardDelegate.dlgButtonClicked(%s, %b)", action.toString(), positive );
|
DbgUtils.logdf("BoardDelegate.dlgButtonClicked(%s, %b)", action.toString(), positive );
|
||||||
|
|
||||||
if ( Action.ENABLE_RELAY_DO == action ) {
|
if ( Action.ENABLE_RELAY_DO == action ) {
|
||||||
handled = true;
|
|
||||||
if ( positive ) {
|
if ( positive ) {
|
||||||
|
handled = true;
|
||||||
RelayService.setEnabled( m_activity, true );
|
RelayService.setEnabled( m_activity, true );
|
||||||
} else {
|
} else if ( AlertDialog.BUTTON_NEGATIVE == which ) {
|
||||||
|
handled = true;
|
||||||
// Things get very confused if askDropRelay() is called here.
|
// Things get very confused if askDropRelay() is called here.
|
||||||
postDelayed( new Runnable() {
|
postDelayed( new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Reference in a new issue