|
@@ -1,5 +1,6 @@
|
|
package eu.kanade.tachiyomi.ui.recent.updates
|
|
package eu.kanade.tachiyomi.ui.recent.updates
|
|
|
|
|
|
|
|
+import android.os.Build
|
|
import android.view.LayoutInflater
|
|
import android.view.LayoutInflater
|
|
import android.view.Menu
|
|
import android.view.Menu
|
|
import android.view.MenuInflater
|
|
import android.view.MenuInflater
|
|
@@ -8,6 +9,7 @@ import android.view.View
|
|
import android.view.ViewGroup
|
|
import android.view.ViewGroup
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.appcompat.app.AppCompatActivity
|
|
import androidx.appcompat.view.ActionMode
|
|
import androidx.appcompat.view.ActionMode
|
|
|
|
+import androidx.core.view.updatePadding
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import androidx.recyclerview.widget.LinearLayoutManager
|
|
import eu.davidea.flexibleadapter.FlexibleAdapter
|
|
import eu.davidea.flexibleadapter.FlexibleAdapter
|
|
import eu.davidea.flexibleadapter.SelectableAdapter
|
|
import eu.davidea.flexibleadapter.SelectableAdapter
|
|
@@ -20,6 +22,7 @@ import eu.kanade.tachiyomi.databinding.UpdatesControllerBinding
|
|
import eu.kanade.tachiyomi.ui.base.controller.NoToolbarElevationController
|
|
import eu.kanade.tachiyomi.ui.base.controller.NoToolbarElevationController
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
import eu.kanade.tachiyomi.ui.base.controller.NucleusController
|
|
import eu.kanade.tachiyomi.ui.base.controller.RootController
|
|
import eu.kanade.tachiyomi.ui.base.controller.RootController
|
|
|
|
+import eu.kanade.tachiyomi.ui.base.controller.insets
|
|
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
|
import eu.kanade.tachiyomi.ui.base.controller.withFadeTransaction
|
|
import eu.kanade.tachiyomi.ui.main.MainActivity
|
|
import eu.kanade.tachiyomi.ui.main.MainActivity
|
|
import eu.kanade.tachiyomi.ui.main.offsetAppbarHeight
|
|
import eu.kanade.tachiyomi.ui.main.offsetAppbarHeight
|
|
@@ -74,6 +77,11 @@ class UpdatesController :
|
|
|
|
|
|
override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View {
|
|
override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View {
|
|
binding = UpdatesControllerBinding.inflate(inflater)
|
|
binding = UpdatesControllerBinding.inflate(inflater)
|
|
|
|
+
|
|
|
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
|
|
|
+ binding.recycler.updatePadding(bottom = binding.recycler.paddingBottom + insets!!.systemWindowInsetBottom)
|
|
|
|
+ }
|
|
|
|
+
|
|
return binding.root
|
|
return binding.root
|
|
}
|
|
}
|
|
|
|
|