File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
app/src/main/java/com/infomaniak/mail/ui/newMessage Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 18
18
package com.infomaniak.mail.ui.newMessage
19
19
20
20
import android.content.Context
21
- import android.graphics.Rect
22
21
import android.util.AttributeSet
23
22
import android.view.KeyEvent
24
23
import com.google.android.material.chip.Chip
@@ -30,15 +29,6 @@ class BackspaceAwareChip @JvmOverloads constructor(
30
29
31
30
private var onBackspace: () -> Unit = {}
32
31
33
- override fun onFocusChanged (focused : Boolean , direction : Int , previouslyFocusedRect : Rect ? ) {
34
- if (isInTouchMode && focused) {
35
- performClick()
36
- clearFocus()
37
- } else {
38
- super .onFocusChanged(focused, direction, previouslyFocusedRect)
39
- }
40
- }
41
-
42
32
override fun onKeyDown (keyCode : Int , event : KeyEvent ? ): Boolean {
43
33
if (keyCode == KeyEvent .KEYCODE_DEL ) onBackspace()
44
34
return super .onKeyDown(keyCode, event)
You can’t perform that action at this time.
0 commit comments