mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-09 03:14:20 +01:00
- 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
31 lines
707 B
Makefile
31 lines
707 B
Makefile
.DEFAULT_GOAL := check
|
|
.PHONY: fake
|
|
|
|
ANDROID_DIR := crates/notedeck_chrome/android
|
|
|
|
check:
|
|
cargo check
|
|
|
|
tags: fake
|
|
rusty-tags vi
|
|
|
|
jni: fake
|
|
cargo ndk --target arm64-v8a -o $(ANDROID_DIR)/app/src/main/jniLibs/ build --profile release
|
|
|
|
jni-check: fake
|
|
cargo ndk --target arm64-v8a check
|
|
|
|
apk: jni
|
|
cd $(ANDROID_DIR) && ./gradlew build
|
|
|
|
gradle:
|
|
cd $(ANDROID_DIR) && ./gradlew build
|
|
|
|
push-android-config:
|
|
adb push android-config.json /sdcard/Android/data/com.damus.notedeck/files/android-config.json
|
|
|
|
android: jni
|
|
cd $(ANDROID_DIR) && ./gradlew installDebug
|
|
adb shell am start -n com.damus.notedeck/.MainActivity
|
|
adb logcat -v color -s GameActivity -s RustStdoutStderr -s threaded_app | tee logcat.txt
|