Page MenuHomePhabricator

[native] add safe area insets for android action sheet
ClosedPublic

Authored by ginsu on Apr 16 2023, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 7:41 AM
Unknown Object (File)
Apr 4 2024, 10:58 PM
Unknown Object (File)
Apr 4 2024, 10:58 PM
Unknown Object (File)
Apr 4 2024, 10:58 PM
Unknown Object (File)
Apr 4 2024, 10:58 PM
Unknown Object (File)
Apr 4 2024, 10:58 PM
Unknown Object (File)
Apr 4 2024, 10:57 PM
Unknown Object (File)
Mar 11 2024, 11:27 PM
Subscribers

Details

Summary

Another thing I encountered when testing the action sheet for the edit avatar flow on android is that if the nav buttons are visible then it partly covers the most bottom option on the action sheet. To fix this I used SafeAreaContext to set the paddingBottom of the action sheet which fixes the issue.

Depends on D7456

Test Plan

Please check out the screenshots to see the changes I made

Before:

Screenshot 2023-04-16 at 1.26.56 PM.png (1×978 px, 843 KB)

After:

Screenshot 2023-04-16 at 1.28.50 PM.png (1×978 px, 841 KB)

w/o nav buttons:

Screenshot 2023-04-16 at 1.30.00 PM.png (1×978 px, 589 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 16 2023, 1:46 PM