close the Select Contact activity on success
This commit is contained in:
parent
a88d37aa41
commit
487900be7b
1 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package com.simplemobiletools.contacts.pro.activities
|
package com.simplemobiletools.contacts.pro.activities
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
import android.app.SearchManager
|
import android.app.SearchManager
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
|
|
@ -263,4 +264,11 @@ class InsertOrEditContactActivity : SimpleActivity(), RefreshContactsListener {
|
||||||
fun fabClicked() {
|
fun fabClicked() {
|
||||||
createNewContact()
|
createNewContact()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onActivityResult(requestCode: Int, resultCode: Int, resultData: Intent?) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, resultData)
|
||||||
|
if (resultCode == Activity.RESULT_OK) {
|
||||||
|
finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue