mirror of
				https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
				synced 2025-06-05 21:49:22 +02:00 
			
		
		
		
	Changed back button behavior in thread (#187)
This commit is contained in:
		@@ -159,6 +159,7 @@ class ThreadActivity : SimpleActivity() {
 | 
			
		||||
            R.id.delete -> askConfirmDelete()
 | 
			
		||||
            R.id.manage_people -> managePeople()
 | 
			
		||||
            R.id.mark_as_unread -> markAsUnread()
 | 
			
		||||
            android.R.id.home -> onBackPressed()
 | 
			
		||||
            else -> return super.onOptionsItemSelected(item)
 | 
			
		||||
        }
 | 
			
		||||
        return true
 | 
			
		||||
@@ -171,6 +172,13 @@ class ThreadActivity : SimpleActivity() {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    override fun onBackPressed() {
 | 
			
		||||
        super.onBackPressed()
 | 
			
		||||
        val intent = Intent(this, MainActivity::class.java)
 | 
			
		||||
        startActivity(intent)
 | 
			
		||||
        finish()
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private fun setupCachedMessages(callback: () -> Unit) {
 | 
			
		||||
        ensureBackgroundThread {
 | 
			
		||||
            messages = try {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user