Skip to content

Fix: Migrate to WindowInsets API for API 30+#5006

Open
codingWiz-rick wants to merge 1 commit intotermux:masterfrom
codingWiz-rick:fix/windowsets-api30-deprecation
Open

Fix: Migrate to WindowInsets API for API 30+#5006
codingWiz-rick wants to merge 1 commit intotermux:masterfrom
codingWiz-rick:fix/windowsets-api30-deprecation

Conversation

@codingWiz-rick
Copy link
Copy Markdown

Changes

  • Replace deprecated FLAG_FULLSCREEN with WindowInsetsController API
  • Update KeyboardUtils to use WindowInsets API instead of deprecated flags
  • Resolves TODO in KeyboardUtils.java:108 regarding API 30 deprecation
  • Maintains backward compatibility for older API levels

Testing

Tested on:

  • Device: OPPO CPH1933
  • Android Version: 11 (API 30)
  • Kernel: Linux 4.14.180-perf+
  • Architecture: arm64-v8a (aarch64)
  • SELinux Context: u:r:untrusted_app_27:s0:c8,c257,c512,c768
  • Target SDK: 28
  • Termux Version: 0.118.0 (GitHub APK release)
  • Build Type: Debug build from source with changes applied
  • Package Manager: apt

Verified that:

  • Fullscreen mode works correctly
  • Keyboard show/hide functionality works as expected
  • Backward compatibility maintained for API < 30
  • App runs without crashes on API 30 device
  • WindowInsetsController properly controls system bars visibility

- Replace deprecated FLAG_FULLSCREEN with WindowInsetsController
- Update KeyboardUtils to use WindowInsets API instead of deprecated flags
- Resolves TODO in KeyboardUtils.java:108 regarding API 30 deprecation
- Maintains backward compatibility for older API levels"

Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant