diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index bfd061ba..2d50f9fb 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -15,6 +15,8 @@
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28" />
+
+
diff --git a/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchThreadFragment.kt b/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchThreadFragment.kt
index a921d2e1..b35133eb 100644
--- a/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchThreadFragment.kt
+++ b/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchThreadFragment.kt
@@ -52,8 +52,8 @@ class SearchThreadFragment : BaseFragment(), OnOrderSwitchListener {
super.onCreate(savedInstanceState)
order = SearchThreadOrder.NEW
filter = SearchThreadFilter.ONLY_THREAD
- if (arguments != null) {
- keyword = arguments!!.getString(ARG_KEYWORD)
+ if (requireArguments() != null) {
+ keyword = requireArguments().getString(ARG_KEYWORD)
}
}
diff --git a/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchUserFragment.kt b/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchUserFragment.kt
index 2a7c01ae..fce73cd8 100644
--- a/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchUserFragment.kt
+++ b/app/src/main/java/com/huanchengfly/tieba/post/fragments/SearchUserFragment.kt
@@ -44,8 +44,8 @@ class SearchUserFragment : BaseFragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
- if (arguments != null) {
- keyword = arguments!!.getString(ARG_KEYWORD)
+ if (requireArguments() != null) {
+ keyword = requireArguments().getString(ARG_KEYWORD)
}
}