summaryrefslogtreecommitdiff
path: root/src/prefs.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-01 15:22:43 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-01 15:22:43 +0200
commit3e371f7ea70b1c2e06e1af50c3b41efdecbd072b (patch)
tree05189b169ead7fa147c888a7cca90a2b1d8dbb8c /src/prefs.c
parent5d247c7fafddcb46d83572af788a04f835d48d42 (diff)
Android: Fixed root sizing; clip menu not showing; toolbar buttons
The keyboard height was miscalculated if there were system keys under the window.
Diffstat (limited to 'src/prefs.c')
-rw-r--r--src/prefs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index 426b7212..3aa05f01 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -44,7 +44,12 @@ void init_Prefs(iPrefs *d) {
44 d->uiAnimations = iTrue; 44 d->uiAnimations = iTrue;
45 d->uiScale = 1.0f; /* default set elsewhere */ 45 d->uiScale = 1.0f; /* default set elsewhere */
46 d->zoomPercent = 100; 46 d->zoomPercent = 100;
47#if defined (iPlatformAndroidMobile)
48 /* Android has a system-wide back button so no need to have a duplicate. */
49 d->toolbarActions[0] = closeTab_ToolbarAction;
50#else
47 d->toolbarActions[0] = back_ToolbarAction; 51 d->toolbarActions[0] = back_ToolbarAction;
52#endif
48 d->toolbarActions[1] = forward_ToolbarAction; 53 d->toolbarActions[1] = forward_ToolbarAction;
49 d->sideIcon = iTrue; 54 d->sideIcon = iTrue;
50 d->hideToolbarOnScroll = iTrue; 55 d->hideToolbarOnScroll = iTrue;