diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-07 14:19:54 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-07 14:19:54 +0530 |
commit | e8ad75d92421365f4e5e376fd725cf762ba81a72 (patch) | |
tree | ab6cded3a8f88ec6e51badaae004c62277af4df9 /ui/src/main/java/com/wireguard | |
parent | b858284b1ea68c1a2065adab5ebc67c887155a5b (diff) |
ui: codestyle nit
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/java/com/wireguard')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.kt b/ui/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.kt index 56591d6f..29d09fbc 100644 --- a/ui/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.kt +++ b/ui/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.kt @@ -17,8 +17,10 @@ import java.lang.ref.WeakReference /** * A generic `RecyclerView.Adapter` backed by a `ObservableKeyedArrayList`. */ -class ObservableKeyedRecyclerViewAdapter<K, E : Keyed<out K>> internal constructor(context: Context, private val layoutId: Int, - list: ObservableKeyedArrayList<K, E>?) : RecyclerView.Adapter<ObservableKeyedRecyclerViewAdapter.ViewHolder>() { +class ObservableKeyedRecyclerViewAdapter<K, E : Keyed<out K>> internal constructor( + context: Context, private val layoutId: Int, + list: ObservableKeyedArrayList<K, E>? +) : RecyclerView.Adapter<ObservableKeyedRecyclerViewAdapter.ViewHolder>() { private val callback = OnListChangedCallback(this) private val layoutInflater: LayoutInflater = LayoutInflater.from(context) private var list: ObservableKeyedArrayList<K, E>? = null |