|
@@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.browse.source
|
|
|
|
|
|
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
|
|
|
import android.app.Dialog
|
|
|
+import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
import android.view.LayoutInflater
|
|
|
import android.view.Menu
|
|
@@ -10,6 +11,7 @@ import android.view.MenuItem
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
import androidx.appcompat.widget.SearchView
|
|
|
+import androidx.core.view.updatePadding
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
|
import com.afollestad.materialdialogs.MaterialDialog
|
|
|
import com.afollestad.materialdialogs.list.listItems
|
|
@@ -27,6 +29,7 @@ import eu.kanade.tachiyomi.source.LocalSource
|
|
|
import eu.kanade.tachiyomi.source.Source
|
|
|
import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
|
+import eu.kanade.tachiyomi.ui.base.controller.insets
|
|
|
import eu.kanade.tachiyomi.ui.base.controller.requestPermissionsSafe
|
|
|
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
|
|
import eu.kanade.tachiyomi.ui.browse.BrowseController
|
|
@@ -81,6 +84,11 @@ class SourceController :
|
|
|
*/
|
|
|
override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View {
|
|
|
binding = SourceMainControllerBinding.inflate(inflater)
|
|
|
+
|
|
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
|
+ binding.recycler.updatePadding(bottom = binding.recycler.paddingBottom + insets!!.systemWindowInsetBottom)
|
|
|
+ }
|
|
|
+
|
|
|
return binding.root
|
|
|
}
|
|
|
|