mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
browse source fab now shows on top of keyboard on android 10 and below
to match A11+
This commit is contained in:
parent
dbac0aa48d
commit
7fe8baae8c
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import android.view.MenuItem
|
|||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.appcompat.widget.SearchView
|
||||
import androidx.core.view.WindowInsetsCompat.Type.ime
|
||||
import androidx.core.view.WindowInsetsCompat.Type.systemBars
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.core.view.updateLayoutParams
|
||||
|
@ -189,7 +190,7 @@ open class BrowseSourceController(bundle: Bundle) :
|
|||
afterInsets = { insets ->
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||
binding.fab.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
bottomMargin = insets.getInsets(systemBars()).bottom + 16.dpToPx
|
||||
bottomMargin = insets.getInsets(systemBars() or ime()).bottom + 16.dpToPx
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue