UI improvements
This commit is contained in:
parent
593657475a
commit
a9761c1a39
1 changed files with 14 additions and 1 deletions
|
@ -186,7 +186,7 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getToolbarHeight() {
|
public int getToolbarHeight() {
|
||||||
return toolbarHeightPx;
|
return isPortrait() ? toolbarHeightPx : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getMiddleStateKoef() {
|
public float getMiddleStateKoef() {
|
||||||
|
@ -286,6 +286,7 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
|
||||||
setupToolbar();
|
setupToolbar();
|
||||||
updateHeader();
|
updateHeader();
|
||||||
setupButtons(view);
|
setupButtons(view);
|
||||||
|
updateCardsLayout();
|
||||||
calculateLayoutAndUpdateMenuState();
|
calculateLayoutAndUpdateMenuState();
|
||||||
}
|
}
|
||||||
return view;
|
return view;
|
||||||
|
@ -443,6 +444,17 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void updateCardsLayout() {
|
||||||
|
FrameLayout bottomContainer = getBottomContainer();
|
||||||
|
if (menuType == TrackMenuType.OPTIONS) {
|
||||||
|
AndroidUtils.setBackground(app, bottomContainer, isNightMode(),
|
||||||
|
R.color.list_background_color_light, R.color.list_background_color_dark);
|
||||||
|
} else {
|
||||||
|
AndroidUtils.setBackground(app, bottomContainer, isNightMode(),
|
||||||
|
R.color.activity_background_color_light, R.color.activity_background_color_dark);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void calculateLayout(View view, boolean initLayout) {
|
protected void calculateLayout(View view, boolean initLayout) {
|
||||||
menuTitleHeight = routeMenuTopShadowAll.getHeight()
|
menuTitleHeight = routeMenuTopShadowAll.getHeight()
|
||||||
|
@ -852,6 +864,7 @@ public class TrackMenuFragment extends ContextMenuScrollFragment implements Card
|
||||||
menuType = type;
|
menuType = type;
|
||||||
setupCards();
|
setupCards();
|
||||||
updateHeader();
|
updateHeader();
|
||||||
|
updateCardsLayout();
|
||||||
calculateLayoutAndUpdateMenuState();
|
calculateLayoutAndUpdateMenuState();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue