Skip to content

Commit

Permalink
fix: nullability issue due to sdk change
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Nov 23, 2024
1 parent f36e9a9 commit 1808a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/github/qauxv/util/HostInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ fun init(applicationContext: Application) {
applicationContext.applicationInfo.loadLabel(applicationContext.packageManager).toString(),
PackageInfoCompat.getLongVersionCode(packageInfo),
PackageInfoCompat.getLongVersionCode(packageInfo).toInt(),
packageInfo.versionName,
packageInfo.versionName ?: "",
when (packageName) {
PACKAGE_NAME_QQ -> {
if ("GoogleMarket" in (packageInfo.applicationInfo.metaData["AppSetting_params"]
if ("GoogleMarket" in (packageInfo.applicationInfo!!.metaData["AppSetting_params"]
?: "") as String) {
HostSpecies.QQ_Play
} else HostSpecies.QQ
Expand Down

0 comments on commit 1808a24

Please sign in to comment.