Prevent crash

pull/203/head
M66B 3 years ago
parent b2d0bb64d7
commit 43be502f2d

@ -169,6 +169,8 @@ public class ActivityBilling extends ActivityBase implements PurchasesUpdatedLis
private static String getChallenge(Context context) throws NoSuchAlgorithmException {
String android_id = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
if (android_id == null)
android_id = Long.toHexString(System.currentTimeMillis() % (24 * 3600 * 1000L));
return Helper.sha256(android_id);
}

Loading…
Cancel
Save