mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +01:00
fix crash on initial install, when pref won't be set yet
This commit is contained in:
parent
eb1ad5cdc3
commit
4d9465a3e2
1 changed files with 7 additions and 6 deletions
|
@ -142,13 +142,14 @@ public class SMSService extends XWService {
|
||||||
R.string.radio_name_cdma,
|
R.string.radio_name_cdma,
|
||||||
};
|
};
|
||||||
|
|
||||||
int ii;
|
int id = R.string.radio_name_real; // default so don't crash before set
|
||||||
for ( ii = 0;
|
for ( int ii = 0; ii < ids.length; ++ii ) {
|
||||||
ii < ids.length && !radio.equals(context.getString(ids[ii]));
|
if ( radio.equals(context.getString(ids[ii])) ) {
|
||||||
++ii ) {
|
id = ids[ii];
|
||||||
// do nothing; we're just setting ii here
|
break;
|
||||||
}
|
}
|
||||||
int id = ids[ii];
|
}
|
||||||
|
|
||||||
switch( id ) {
|
switch( id ) {
|
||||||
case R.string.radio_name_real:
|
case R.string.radio_name_real:
|
||||||
break; // go with above
|
break; // go with above
|
||||||
|
|
Loading…
Reference in a new issue