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
F3363538: D7457.id25199.diff
Mon, Nov 25, 2:28 AM
Unknown Object (File)
Fri, Nov 22, 2:38 PM
Unknown Object (File)
Fri, Nov 22, 1:59 PM
Unknown Object (File)
Fri, Nov 22, 1:48 PM
Unknown Object (File)
Fri, Nov 22, 9:23 AM
Unknown Object (File)
Thu, Nov 21, 11:55 PM
Unknown Object (File)
Thu, Nov 21, 11:55 PM
Unknown Object (File)
Thu, Nov 21, 11:55 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

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