Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
fix: 修复部分吧闪退
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanCheng65 committed Dec 31, 2022
1 parent dbd885f commit 8790752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboard|navigation|keyboardHidden"
android:enabled="false"
android:exported="true"
android:icon="@mipmap/ic_launcher_new"
android:roundIcon="@mipmap/ic_launcher_new_round"
android:launchMode="singleTop"
android:resizeableActivity="true"
android:theme="@style/Theme.Splash"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class ForumPageBean : ErrorBean() {
private set

@SerializedName("abstract")
var abstractBeans: List<AbstractBean>? = null
var abstractBeans: List<AbstractBean?>? = null
private set
private var abstractString: String? = null

Expand Down Expand Up @@ -336,7 +336,8 @@ class ForumPageBean : ErrorBean() {
}
if (abstractBeans != null) {
val stringBuilder = StringBuilder()
for (abstractBean in abstractBeans!!) {
for (abstractBean in abstractBeans ?: emptyList()) {
if (abstractBean == null) continue
stringBuilder.append(abstractBean.text)
}
return stringBuilder.toString()
Expand Down

0 comments on commit 8790752

Please sign in to comment.