From 32338556303ab231bcd265e36a1e617e9bfbfe69 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 29 Oct 2017 05:06:36 -0500 Subject: [PATCH] BindingAdapters: Sort existing adapters Signed-off-by: Jason A. Donenfeld --- .../wireguard/android/bindings/BindingAdapters.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/wireguard/android/bindings/BindingAdapters.java b/app/src/main/java/com/wireguard/android/bindings/BindingAdapters.java index 1542692a..621543aa 100644 --- a/app/src/main/java/com/wireguard/android/bindings/BindingAdapters.java +++ b/app/src/main/java/com/wireguard/android/bindings/BindingAdapters.java @@ -17,6 +17,11 @@ import com.wireguard.android.R; @SuppressWarnings("unused") public final class BindingAdapters { + @BindingAdapter({"filter"}) + public static void setFilter(final TextView view, final InputFilter filter) { + view.setFilters(new InputFilter[]{filter}); + } + @BindingAdapter({"items", "layout"}) public static void setItems(final LinearLayout view, final ObservableList oldList, final int oldLayoutId, @@ -94,11 +99,6 @@ public final class BindingAdapters { adapter.setMap(newMap); } - @BindingAdapter({"filter"}) - public static void setFilter(final TextView view, final InputFilter filter) { - view.setFilters(new InputFilter[]{filter}); - } - @BindingAdapter({"android:textStyle"}) public static void setTextStyle(final TextView view, final Typeface typeface) { view.setTypeface(typeface);