Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a862f8ed authored by Edgar Wang's avatar Edgar Wang
Browse files

[SettingsLib] SegmentedButtonPreference fix NullPointerException when view is inflating

The ButtonGroup can not be empty, it will get NPE if all children's
visibility are GONE when inflating. So we should set all button's
visibility GONE and ButtonGroup visibility to GONE in xml, and turn on
ButtonGroup when the data is not empty.

Bug: 414319180
Test: manual
Flag: EXEMPT bug fix
Change-Id: Ib9c8cb2b7ddec8c22418ec6e0890cb9cf6280292
parent ab2d0a91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment