|
@@ -8,6 +8,7 @@ import android.view.MenuItem
|
|
|
import android.view.View
|
|
|
import androidx.appcompat.widget.SearchView
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
|
+import dev.chrisbanes.insetter.applyInsetter
|
|
|
import eu.kanade.tachiyomi.R
|
|
|
import eu.kanade.tachiyomi.databinding.SettingsSearchControllerBinding
|
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
@@ -56,6 +57,12 @@ class SettingsSearchController :
|
|
|
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
|
|
inflater.inflate(R.menu.settings_main, menu)
|
|
|
|
|
|
+ binding.recycler.applyInsetter {
|
|
|
+ type(navigationBars = true) {
|
|
|
+ padding()
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// Initialize search menu
|
|
|
val searchItem = menu.findItem(R.id.action_search)
|
|
|
searchView = searchItem.actionView as SearchView
|