Remove onClickableListener on MainSwitchBar's switch since it has been set to not focusable and not clickable.
Fix: 230266556 Test: manually verified Change-Id: Iee3649a37727e3f845e4c17576cf577270befd95
This commit is contained in:
@@ -30,7 +30,6 @@ import android.widget.Switch;
|
|||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.ColorInt;
|
import androidx.annotation.ColorInt;
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
import com.android.settingslib.utils.BuildCompatUtils;
|
import com.android.settingslib.utils.BuildCompatUtils;
|
||||||
|
|
||||||
@@ -122,15 +121,10 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
|
|||||||
propagateChecked(isChecked);
|
propagateChecked(isChecked);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setOnClickListener(@Nullable OnClickListener l) {
|
|
||||||
super.setOnClickListener(l);
|
|
||||||
mSwitch.setOnClickListener(l);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean performClick() {
|
public boolean performClick() {
|
||||||
return mSwitch.performClick();
|
mSwitch.performClick();
|
||||||
|
return super.performClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user