mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
call removeDialog() when dismissing blocking dialogs. Fixes reporting
the same robot move every time.
This commit is contained in:
parent
166bee6c82
commit
92a726aff3
1 changed files with 5 additions and 4 deletions
|
@ -198,7 +198,7 @@ public class BoardActivity extends XWActivity
|
|||
}
|
||||
|
||||
dialog = ab.create();
|
||||
dialog.setOnDismissListener( makeODLforBlocking() );
|
||||
dialog.setOnDismissListener( makeODLforBlocking( id ) );
|
||||
break;
|
||||
|
||||
case PICK_TILE_REQUEST_BLK:
|
||||
|
@ -213,7 +213,7 @@ public class BoardActivity extends XWActivity
|
|||
ab.setItems( m_texts, lstnr );
|
||||
|
||||
dialog = ab.create();
|
||||
dialog.setOnDismissListener( makeODLforBlocking() );
|
||||
dialog.setOnDismissListener( makeODLforBlocking( id ) );
|
||||
break;
|
||||
|
||||
case ASK_PASSWORD_BLK:
|
||||
|
@ -230,7 +230,7 @@ public class BoardActivity extends XWActivity
|
|||
}
|
||||
});
|
||||
dialog = ab.create();
|
||||
dialog.setOnDismissListener( makeODLforBlocking() );
|
||||
dialog.setOnDismissListener( makeODLforBlocking( id ) );
|
||||
break;
|
||||
|
||||
case QUERY_ENDGAME:
|
||||
|
@ -1216,12 +1216,13 @@ public class BoardActivity extends XWActivity
|
|||
});
|
||||
} // populateToolbar
|
||||
|
||||
private DialogInterface.OnDismissListener makeODLforBlocking()
|
||||
private DialogInterface.OnDismissListener makeODLforBlocking( final int id )
|
||||
{
|
||||
return new DialogInterface.OnDismissListener() {
|
||||
public void onDismiss( DialogInterface di ) {
|
||||
setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_SENSOR );
|
||||
releaseIfBlocking();
|
||||
removeDialog( id );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue