kunfei hace 4 años
padre
commit
370d048e08
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {