close the Select Contact activity on success

This commit is contained in:
tibbi 2019-12-06 23:03:16 +01:00
parent a88d37aa41
commit 487900be7b
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package com.simplemobiletools.contacts.pro.activities
import android.app.Activity
import android.app.SearchManager
import android.content.Context
import android.content.Intent
@ -263,4 +264,11 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener {
fun fabClicked() {
createNewContact()
}
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
super.onActivityResult(requestCode, resultCode, resultData)
if (resultCode == Activity.RESULT_OK) {
finish()
}
}
}