provide default for rematch order

This commit is contained in:
Eric House 2024-02-05 17:11:55 -08:00
parent 6473bc9f4c
commit a5687d788b

View file

@ -133,7 +133,8 @@ public class RematchConfigView extends LinearLayout
boolean[] results = XwJNI.server_canOfferRematch( mWrapper.gamePtr() );
if ( results[0] && results[1] ) {
int ordinal = DBUtils.getIntFor( mContext, KEY_LAST_RO, 0 );
int ordinal = DBUtils.getIntFor( mContext, KEY_LAST_RO,
RematchOrder.RO_SAME.ordinal() );
RematchOrder lastSel = RematchOrder.values()[ordinal];
for ( RematchOrder ro : RematchOrder.values() ) {