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

Commit 34677c7b authored by Mady Mellor's avatar Mady Mellor
Browse files

Maybe fix NPE - don't notifyChange if selected visibility is the same

Flag: none / bugfix
Test: none / can't repro
Test: manual - switch between the different radio buttons in bubble settings to make sure they
               all work
Bug: 343167554
Change-Id: I19fc3fa0df59c44e3f22de035c0b377caea1158f
parent 38236869
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -80,9 +80,11 @@ public class BubblePreference extends Preference implements RadioGroup.OnChecked
    }

    public void setSelectedVisibility(boolean visible) {
        if (mSelectedVisible != visible) {
            mSelectedVisible = visible;
            notifyChanged();
        }
    }

    @Override
    public void onBindViewHolder(@NonNull final PreferenceViewHolder holder) {