Commit 2e3c074a by konghaorui

修复测评搜索框键盘无法弹出问题 - 未发布

parent 69d550ff
......@@ -132,7 +132,7 @@ class TestSearchActivity : BaseMvpActivity<TestSearchView, TestSearchPresenter>(
}
rv_hot_list.addOnScrollListener(object : RecyclerView.OnScrollListener() {
override fun onScrolled(recyclerView: RecyclerView?, dx: Int, dy: Int) {
if (!isFirstLoad) {
if (!isFirstLoad && dx!=0 && dx!=0) {
hideSoftInput()
}
}
......
......@@ -61,11 +61,7 @@ object UserHelper {
fun getUserInfoStr(): String? {
if (userTemp != null) return gson.toJson(userTemp)
try {
return SharedPreferencesEditor.getFileString(user_info_name_sp, user_info_key_sp)
} catch (e: Exception) {
return ""
}
}
fun updateUserinfo(userInfo: UserResponseBean.UserInfo?) {
......@@ -135,10 +131,6 @@ object UserHelper {
fun getUserSettingStr(): String? {
if (userSetting != null) return gson.toJson(userSetting)
try {
return SharedPreferencesEditor.getFileString(user_setting_name_sp, user_setting_key_sp)
} catch (e: Exception) {
return ""
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment