sforkowany z mirror/meshtastic-android
				
			also show failure to bond in the GUI
							rodzic
							
								
									56534f0b89
								
							
						
					
					
						commit
						5e57fd69e1
					
				| 
						 | 
				
			
			@ -69,13 +69,11 @@ private fun requestBonding(
 | 
			
		|||
 | 
			
		||||
            if (state != BOND_BONDING) {
 | 
			
		||||
                context.unregisterReceiver(this) // we stay registered until bonding completes (either with BONDED or NONE)
 | 
			
		||||
                if (state == BOND_BONDED) {
 | 
			
		||||
                SLogging.debug("Bonding completed, state=$state")
 | 
			
		||||
                onComplete(state)
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    val filter = IntentFilter()
 | 
			
		||||
    filter.addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue