diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DevID.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DevID.java index ac36e8936..6d291112b 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DevID.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DevID.java @@ -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 ); }