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
F3346635: D7457.diff
Fri, Nov 22, 9:23 AM
F3341900: D7457.id25202.diff
Thu, Nov 21, 11:55 PM
F3341899: D7457.id25199.diff
Thu, Nov 21, 11:55 PM
F3341898: D7457.id25197.diff
Thu, Nov 21, 11:55 PM
F3341897: D7457.id25195.diff
Thu, Nov 21, 11:55 PM
F3341895: D7457.id.diff
Thu, Nov 21, 11:55 PM
F3341890: D7457.diff
Thu, Nov 21, 11:54 PM
Unknown Object (File)
Thu, Nov 21, 1:45 AM
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