mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-21 20:14:46 +00:00
Fixed bottom menu button visibility.
This commit is contained in:
parent
362c7f5b2c
commit
5c2f6f8dc0
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ class MenuBottomBarFragment : MainActivityFragment() {
|
|||
fun updateAllButtonVisibility() {
|
||||
val defs = currentButtonDefinitions?.toMutableList() ?: return
|
||||
val metrics = StateApp.instance.displayMetrics ?: resources.displayMetrics;
|
||||
_buttonsVisible = floor(metrics.widthPixels.toDouble() / 65.dp(resources).toDouble()).roundToInt() - 1;
|
||||
_buttonsVisible = floor(metrics.widthPixels.toDouble() / 65.dp(resources).toDouble()).roundToInt();
|
||||
if (_buttonsVisible >= defs.size) {
|
||||
updateBottomMenuButtons(defs.toMutableList(), false);
|
||||
} else if (_buttonsVisible > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue