feat: 优化代码

pull/167/head
kunfei 5 years ago
parent c7b2e1c7b2
commit 41ff8c1c65
  1. 2
      app/src/main/java/io/legado/app/ui/book/search/SearchActivity.kt

@ -3,7 +3,6 @@ package io.legado.app.ui.book.search
import android.os.Bundle import android.os.Bundle
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem
import android.view.View
import android.view.View.GONE import android.view.View.GONE
import android.view.View.VISIBLE import android.view.View.VISIBLE
import androidx.appcompat.widget.SearchView import androidx.appcompat.widget.SearchView
@ -113,6 +112,7 @@ class SearchActivity : VMBaseActivity<SearchViewModel>(R.layout.activity_book_se
viewModel.saveSearchKey(query) viewModel.saveSearchKey(query)
viewModel.search(it) viewModel.search(it)
} }
openOrCloseHistory(false)
return true return true
} }

Loading…
Cancel
Save