android icon indicating copy to clipboard operation
android copied to clipboard

fix: adapt action mode bar to landscape insets

Open himu-gupta opened this issue 5 months ago • 4 comments

Summary

  • Make the contextual multi-selection action bar consume landscape system bar and display cutout insets horizontally.
  • Keep the action icons visible by avoiding top inset padding on the AppCompat action mode content.
  • Add an unreleased changelog entry.

Fixes https://github.com/owncloud/android/issues/4892

Verification

  • JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" ANDROID_HOME="/Users/himu/Library/Android/sdk" ./gradlew --no-daemon --console=plain :owncloudApp:compileOriginalDebugKotlin
  • JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home" ANDROID_HOME="/Users/himu/Library/Android/sdk" ./gradlew --no-daemon --console=plain :owncloudApp:assembleOriginalDebug
  • git diff --check

himu-gupta avatar Jun 18 '26 09:06 himu-gupta

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 18 '26 09:06 CLAassistant

Hi @himu-gupta! Thanks for opening this PR! 🍻

I've checked your code and it does not seem to work as expected because all the icons in the action bar are hidden, and the system bar does not span the full width of the screen. Is the PR still in progress? 🤔 If not, I think this is not a valid solution. Let us know if you have any doubts and we will be happy to help you!

NOTE: Do not forget to use conventional commits for the message. Commits must be GPG/PGP signed, and it'd be great if each commit include a Signed-off-by line. Also, I'd separate the calens into a different commit with the message: chore: add calens file

joragua avatar Jun 18 '26 10:06 joragua

Just two details before the CR @himu-gupta! 😄

Could it be possible to adjust the content of the action bar in order to prevent overlap between navigation buttons and the buttons from the bar? Also, could the black system bar be extended across the entire width of the device screen? 🤔 Thanks!

action_bar

joragua avatar Jun 19 '26 08:06 joragua

@himu-gupta How is this PR going? Are you still working on it? Let us know if you have any doubts! 🙌🏻

joragua avatar Jun 25 '26 07:06 joragua