Prevent NPE if View has not been initialized

Sets the list to always be non-null (start with a non empty list)

Test: manual (no NPE)
Fixes: 222722721
Change-Id: I1ef5241cca189a857f39a737ba73638b44ef9a60
This commit is contained in:
Fabian Kozynski
2022-03-09 14:36:26 -05:00
parent 612b7a69dc
commit efa9937bbc

View File

@@ -102,7 +102,7 @@ public class QuickStatusBarHeader extends FrameLayout {
private int mTopViewMeasureHeight;
@NonNull
private List<String> mRssiIgnoredSlots;
private List<String> mRssiIgnoredSlots = List.of();
private boolean mIsSingleCarrier;
private boolean mHasCenterCutout;