mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
don't allow devid of 0
This commit is contained in:
parent
d4d4693def
commit
42da9b1ebf
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ public class DevID {
|
|||
synchronized ( sNFCDevID ) {
|
||||
if ( 0 == sNFCDevID[0] ) {
|
||||
int devid = DBUtils.getIntFor( context, NFC_DEVID_KEY, 0 );
|
||||
if ( 0 == devid ) {
|
||||
while ( 0 == devid ) {
|
||||
devid = Utils.nextRandomInt();
|
||||
DBUtils.setIntFor( context, NFC_DEVID_KEY, devid );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue