mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
fix casting error caught by compiler
This commit is contained in:
parent
7b3691662a
commit
0d863d2d3f
1 changed files with 2 additions and 3 deletions
|
@ -838,12 +838,11 @@ public class GameConfig extends XWActivity
|
|||
m_car.ip_relay_advertiseRoom =
|
||||
Utils.getChecked( this, R.id.advertise_new_room_check );
|
||||
if ( m_car.ip_relay_seeksPublicRoom ) {
|
||||
ArrayAdapter<String> adapter =
|
||||
(ArrayAdapter<String>)m_roomChoose.getAdapter();
|
||||
SpinnerAdapter adapter = m_roomChoose.getAdapter();
|
||||
if ( null != adapter ) {
|
||||
int pos = m_roomChoose.getSelectedItemPosition();
|
||||
if ( pos >= 0 && pos < adapter.getCount() ) {
|
||||
m_car.ip_relay_invite = adapter.getItem(pos);
|
||||
m_car.ip_relay_invite = (String)adapter.getItem(pos);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue