mirror of
				https://github.com/SimpleMobileTools/Simple-Contacts.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	if the other party hangs up before establishing, close screen immediately
This commit is contained in:
		@@ -151,12 +151,16 @@ class DialerActivity : SimpleActivity(), SensorEventListener {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun statusDisconnected() {
 | 
			
		||||
        isCallActive = false
 | 
			
		||||
        timerHandler.removeCallbacksAndMessages(null)
 | 
			
		||||
        dialer_hangup_button.beGone()
 | 
			
		||||
        dialer_hangup_button.postDelayed({
 | 
			
		||||
        if (isCallActive) {
 | 
			
		||||
            dialer_hangup_button.postDelayed({
 | 
			
		||||
                finish()
 | 
			
		||||
            }, DISCONNECT_DELAY)
 | 
			
		||||
        } else {
 | 
			
		||||
            finish()
 | 
			
		||||
        }, DISCONNECT_DELAY)
 | 
			
		||||
        }
 | 
			
		||||
        isCallActive = false
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun updateOtherParticipant(contact: Contact?) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user