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 1818package  com.infomaniak.mail.ui.newMessage 
1919
2020import  android.content.Context 
21- import  android.graphics.Rect 
2221import  android.util.AttributeSet 
2322import  android.view.KeyEvent 
2423import  com.google.android.material.chip.Chip 
@@ -30,15 +29,6 @@ class BackspaceAwareChip @JvmOverloads constructor(
3029
3130    private  var  onBackspace:  () ->  Unit  =  {}
3231
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- 
4232    override  fun  onKeyDown (keyCode :  Int , event :  KeyEvent ? ): Boolean  {
4333        if  (keyCode ==  KeyEvent .KEYCODE_DEL ) onBackspace()
4434        return  super .onKeyDown(keyCode, event)
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments