mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +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,
|
||||
};
|
||||
|
||||
int ii;
|
||||
for ( ii = 0;
|
||||
ii < ids.length && !radio.equals(context.getString(ids[ii]));
|
||||
++ii ) {
|
||||
// do nothing; we're just setting ii here
|
||||
int id = R.string.radio_name_real; // default so don't crash before set
|
||||
for ( int ii = 0; ii < ids.length; ++ii ) {
|
||||
if ( radio.equals(context.getString(ids[ii])) ) {
|
||||
id = ids[ii];
|
||||
break;
|
||||
}
|
||||
}
|
||||
int id = ids[ii];
|
||||
|
||||
switch( id ) {
|
||||
case R.string.radio_name_real:
|
||||
break; // go with above
|
||||
|
|
Loading…
Reference in a new issue