kunfei 4 ani în urmă
părinte
comite
370d048e08
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 sysElevation = appCtx.resources.getDimension(R.dimen.design_appbar_elevation).toInt()
 
 
     val androidId: String by lazy {
     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 {
     val appInfo: AppInfo by lazy {