From 3e371f7ea70b1c2e06e1af50c3b41efdecbd072b Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 1 Jan 2022 15:22:43 +0200 Subject: Android: Fixed root sizing; clip menu not showing; toolbar buttons The keyboard height was miscalculated if there were system keys under the window. --- src/ui/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ui/util.c') diff --git a/src/ui/util.c b/src/ui/util.c index 6add5c89..c590caa9 100644 --- a/src/ui/util.c +++ b/src/ui/util.c @@ -1204,6 +1204,9 @@ void openMenuFlags_Widget(iWidget *d, iInt2 windowCoord, int menuOpenFlags) { leftExcess += l; rightExcess += r; } +#elif defined (iPlatformMobile) + /* Reserve space for the keyboard. */ + bottomExcess += get_MainWindow()->keyboardHeight; #endif if (!allowOverflow) { if (bottomExcess > 0 && (!isPortraitPhone || !isSlidePanel)) { @@ -2495,8 +2498,9 @@ iWidget *makePreferences_Widget(void) { }; const iMenuItem colorPanelItems[] = { { "title id:heading.prefs.colors" }, - //{ "heading id:heading.prefs.uitheme" }, +#if !defined (iPlatformAndroidMobile) { "toggle id:prefs.ostheme" }, +#endif { "radio id:prefs.theme", 0, 0, (const void *) themeItems }, { "radio id:prefs.accent", 0, 0, (const void *) accentItems }, { "heading id:heading.prefs.pagecontent" }, -- cgit v1.2.3