databinding: Simplify method signature
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
6eef4093d8
commit
5f09afbc16
@ -13,6 +13,7 @@ import com.wireguard.android.R;
|
||||
import com.wireguard.android.util.Keyed;
|
||||
import com.wireguard.android.util.KeyedObservableList;
|
||||
import com.wireguard.android.widget.ToggleSwitch;
|
||||
import com.wireguard.android.widget.ToggleSwitch.OnBeforeCheckedChangeListener;
|
||||
|
||||
import org.threeten.bp.Instant;
|
||||
import org.threeten.bp.ZoneId;
|
||||
@ -92,8 +93,7 @@ public final class BindingAdapters {
|
||||
|
||||
@BindingAdapter({"onBeforeCheckedChanged"})
|
||||
public static void setOnBeforeCheckedChanged(final ToggleSwitch view,
|
||||
final ToggleSwitch.OnBeforeCheckedChangeListener
|
||||
listener) {
|
||||
final OnBeforeCheckedChangeListener listener) {
|
||||
view.setOnBeforeCheckedChangeListener(listener);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user