diff options
author | Samuel Holland <samuel@sholland.org> | 2017-10-29 05:06:36 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-11-24 21:27:18 -0600 |
commit | f046472282040e9bd2f8447a3ea52a77ca017564 (patch) | |
tree | 6a3303931a2b8f53d987dd05d8e04115993b2a91 /app | |
parent | 0f2637d9947d476979e448cec59261c2ae446f84 (diff) |
BindingAdapters: Sort existing adapters
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/bindings/BindingAdapters.java | 10 |
1 files 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 <T> void setItems(final LinearLayout view, final ObservableList<T> 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); |