From d583609b28180b5c220696fae9c18a9369b3515c Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 30 Jul 2019 06:15:56 +0530 Subject: AutofillFragment: Explicitly declare type Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt index db6c3ed8..d01ccdc8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt @@ -9,6 +9,7 @@ import android.content.pm.PackageManager import android.os.Bundle import android.view.View import android.view.ViewGroup +import android.widget.AdapterView import android.widget.ArrayAdapter import android.widget.EditText import android.widget.ListView @@ -71,7 +72,8 @@ class AutofillFragment : DialogFragment() { } (view.findViewById(R.id.matched) as ListView).adapter = adapter // delete items by clicking them - (view.findViewById(R.id.matched) as ListView).onItemClickListener = { _, _, position, _ -> adapter!!.remove(adapter!!.getItem(position)) } + (view.findViewById(R.id.matched) as ListView).onItemClickListener = + AdapterView.OnItemClickListener { _, _, position, _ -> adapter!!.remove(adapter!!.getItem(position)) } // set the existing preference, if any val prefs: SharedPreferences = if (!isWeb) { -- cgit v1.2.3