summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-07-30 06:15:56 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2019-07-30 06:15:56 +0530
commitd583609b28180b5c220696fae9c18a9369b3515c (patch)
treea1af2b9d08d813780fd438598083e13e968bcd76 /app
parent80c397ef7b7b7eab19158a59cb438fbb958a9657 (diff)
AutofillFragment: Explicitly declare type
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillFragment.kt4
1 files changed, 3 insertions, 1 deletions
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<View>(R.id.matched) as ListView).adapter = adapter
// delete items by clicking them
- (view.findViewById<View>(R.id.matched) as ListView).onItemClickListener = { _, _, position, _ -> adapter!!.remove(adapter!!.getItem(position)) }
+ (view.findViewById<View>(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) {