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

Commit 2e30e126 authored by George Mount's avatar George Mount
Browse files

Add @NonNull to OnCheckedChangeListener

Fixes: 357484824
Flag: EXEMPT bugfix
RelNote: Added NonNull to OnCheckedChangeListener

Test: None. Nullability annotation only.
Change-Id: Ida225a0b5b2cb4da63ba4f2f06be8587316f71d1
parent 821e24cf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -59031,7 +59031,7 @@ package android.widget {
  }
  public static interface CompoundButton.OnCheckedChangeListener {
    method public void onCheckedChanged(android.widget.CompoundButton, boolean);
    method public void onCheckedChanged(@NonNull android.widget.CompoundButton, boolean);
  }
  public abstract class CursorAdapter extends android.widget.BaseAdapter implements android.widget.Filterable android.widget.ThemedSpinnerAdapter {
@@ -60096,7 +60096,7 @@ package android.widget {
  }
  public static interface RadioGroup.OnCheckedChangeListener {
    method public void onCheckedChanged(android.widget.RadioGroup, @IdRes int);
    method public void onCheckedChanged(@NonNull android.widget.RadioGroup, @IdRes int);
  }
  public class RatingBar extends android.widget.AbsSeekBar {
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ public abstract class CompoundButton extends Button implements Checkable {
         * @param buttonView The compound button view whose state has changed.
         * @param isChecked  The new checked state of buttonView.
         */
        void onCheckedChanged(CompoundButton buttonView, boolean isChecked);
        void onCheckedChanged(@NonNull CompoundButton buttonView, boolean isChecked);
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ public class RadioGroup extends LinearLayout {
         * @param group the group in which the checked radio button has changed
         * @param checkedId the unique identifier of the newly checked radio button
         */
        public void onCheckedChanged(RadioGroup group, @IdRes int checkedId);
        void onCheckedChanged(@NonNull RadioGroup group, @IdRes int checkedId);
    }

    private class CheckedStateTracker implements CompoundButton.OnCheckedChangeListener {