William Casarin
77ac91e810
Implement soft keyboard visibility on Android
...
- Added `SoftKeyboardContext` enum and support for calculating keyboard
insets from both virtual and platform sources
- Updated `AppContext` to provide `soft_keyboard_rect` for determining
visible keyboard area
- Adjusted UI rendering to shift content when input boxes intersect with
the soft keyboard, preventing overlap
- Modified `MainActivity` and Android manifest to use
`windowSoftInputMode="adjustResize"` and updated window inset handling
- Introduced helper functions (`include_input`, `input_rect`,
`clear_input_rect`) in `notedeck_ui` for tracking focused input boxes
- Fixed Android JNI keyboard height reporting to clamp negative values
Together, these changes allow the app to correctly detect and respond
to soft keyboard visibility on Android, ensuring input fields remain
accessible when typing.
Fixes: https://github.com/damus-io/notedeck/issues/946
Fixes: https://github.com/damus-io/notedeck/issues/1043
2025-08-19 11:29:45 -07:00
William Casarin
6a08d4b1b2
ui/note: fix width instabilities because of spacing_mut
...
TODO: get rid of all spacing_mut in the codebase
Fixes: 9ff5753bca ("settings: use timed serializer, handle zoom properly...")
2025-07-31 17:54:53 -07:00
William Casarin
d6d7e4c35e
android: fix build
...
Fixes: dac786e60f ("chrome: remove duplication in app setup")
2025-07-31 17:29:06 -07:00
William Casarin
dac786e60f
chrome: remove duplication in app setup
...
Also move debug warning to chrome so that headless
notedeck apps don't hit that.
2025-07-31 17:07:51 -07:00
William Casarin
b1a5dd6cab
add NotedeckOptions and feature flags, add notebook feature
...
This switches from bools to flags in our Args struct. We also add
notebook as an optional feature flag (--notebook) since its not ready.
2025-07-31 16:03:13 -07:00
William Casarin
1ab4eeb48c
init notebook
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-31 15:07:50 -07:00
Fernando López Guevara
9ff5753bca
settings: use timed serializer, handle zoom properly, use custom text style for note body font size, added font size slider, added preview note
2025-07-29 21:43:26 -03:00
Jakub Gladysz
bd9a78b305
Do not crash on unknown arg
...
Signed-off-by: Jakub Gladysz <jakub.gladysz@protonmail.com >
2025-07-24 11:02:43 +03:00
William Casarin
6172777b1a
android: remove special load arguments
...
we want to make sure we have the same onboarding path as desktop
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-10 13:32:52 -07:00
William Casarin
738b5e71da
android: default app to columns
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-08 12:12:03 -07:00
William Casarin
505083998d
android: fix build
...
wip android keyboard fixes
wip 4.0.0 game-activity
Signed-off-by: William Casarin <jb55@jb55.com >
2025-06-16 16:11:51 -07:00
William Casarin
771537a4f6
android: hover post button when narrow
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-06-03 10:29:38 -07:00
William Casarin
6e751aa20a
dave: fix android build
2025-04-14 11:17:06 -07:00
William Casarin
4469918fd2
dave: prepare for android
2025-04-14 11:17:06 -07:00
William Casarin
1dec07afe8
android: expand logs
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-03-11 10:52:29 -07:00
Ken Sedgwick
93c97cf769
android: need argv0 placeholders because unneeded arg detection
2025-03-11 10:52:29 -07:00
William Casarin
51457a0260
android: update to latest winit/egui/android-activity
...
so we can start fixing this shit
Signed-off-by: William Casarin <jb55@jb55.com >
2025-03-11 10:51:56 -07:00
Ken Sedgwick
267f3c4527
update android default config push instructions
2025-03-11 10:47:33 -07:00
William Casarin
da9b2bcd46
android: 0.30.0 game activity
...
still no text input, at least it's not crashing
Signed-off-by: William Casarin <jb55@jb55.com >
2025-03-11 10:47:32 -07:00
Ken Sedgwick
480f98eda4
panic on unknown CLI arguments
...
Currently silently ignores which is not helpful ...
2025-02-06 12:25:31 -08:00
kieran
86e68b1c29
move Notedeck to notedeck crate
2025-01-20 23:25:31 +00:00
William Casarin
5f21d32d96
android: fix android logging
2025-01-04 13:14:05 -08:00
William Casarin
18226a35ff
android: fix build
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-12-14 01:51:56 -08:00
William Casarin
c3bbc6b977
android: fix issues due to rearchitecture
2024-12-13 09:36:10 -08:00