kunfei 4 лет назад
Родитель
Сommit
370d048e08
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/src/main/java/io/legado/app/constant/AppConst.kt

+ 1 - 1
app/src/main/java/io/legado/app/constant/AppConst.kt

@@ -60,7 +60,7 @@ object AppConst {
     val sysElevation = appCtx.resources.getDimension(R.dimen.design_appbar_elevation).toInt()
 
     val androidId: String by lazy {
-        Settings.System.getString(appCtx.contentResolver, Settings.Secure.ANDROID_ID)
+        Settings.System.getString(appCtx.contentResolver, Settings.Secure.ANDROID_ID) ?: "null"
     }
 
     val appInfo: AppInfo by lazy {