diff options
author | Douglas Sigelbaum <sigelbaum@google.com> | 2017-05-31 15:43:29 -0700 |
---|---|---|
committer | Douglas Sigelbaum <sigelbaum@google.com> | 2017-05-31 15:45:48 -0700 |
commit | 7728483122aeee29bf73078d5e1e169aef6a5a75 (patch) | |
tree | c6d4523cf86f5f8398d7cdb02d48f679841b94e5 /input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt | |
parent | 8e50ed8ff425dc58bb9936c288c80187587634cb (diff) | |
download | android-7728483122aeee29bf73078d5e1e169aef6a5a75.tar.gz |
Implemented autofill callbacks in kotlin autofill sample.
Disable AutoComplete in AutoCompleteTextView when AFF
is working.
Bug: 38182790
Test: manual
Change-Id: If6de507dc2acf2033f2930d8e1c2cae85903b9a5
Diffstat (limited to 'input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt')
-rw-r--r-- | input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt b/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt index bef16afe..b230db47 100644 --- a/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt +++ b/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt @@ -183,8 +183,8 @@ class CustomVirtualView(context: Context, attrs: AttributeSet) : View(context, a } private class Item internal constructor(val line: Line, val id: Int, val hints: Array<String>?, - val type: Int, var text: CharSequence, - val editable: Boolean, val sanitized: Boolean) { + val type: Int, var text: CharSequence, + val editable: Boolean, val sanitized: Boolean) { var focused = false override fun toString(): String { @@ -199,7 +199,7 @@ class CustomVirtualView(context: Context, attrs: AttributeSet) : View(context, a } private inner class Line constructor(val idEntry: String, label: String, hints: Array<String>, - text: String, sanitized: Boolean) { + text: String, sanitized: Boolean) { // Boundaries of the text field, relative to the CustomView internal val bounds = Rect() |