hide keyboard at closing Select Time Zone activity
This commit is contained in:
parent
ddbb860794
commit
28acd10747
|
@ -70,7 +70,7 @@ android {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:d09ee0000e'
|
||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:8f22bc5532'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
|
|
|
@ -14,6 +14,7 @@ import com.simplemobiletools.calendar.pro.helpers.CURRENT_TIME_ZONE
|
|||
import com.simplemobiletools.calendar.pro.helpers.TIME_ZONE
|
||||
import com.simplemobiletools.calendar.pro.helpers.getAllTimeZones
|
||||
import com.simplemobiletools.calendar.pro.models.MyTimeZone
|
||||
import com.simplemobiletools.commons.extensions.hideKeyboard
|
||||
import com.simplemobiletools.commons.helpers.NavigationIcon
|
||||
import kotlinx.android.synthetic.main.activity_select_time_zone.*
|
||||
import java.util.*
|
||||
|
@ -28,6 +29,7 @@ class SelectTimeZoneActivity : SimpleActivity() {
|
|||
setupOptionsMenu()
|
||||
|
||||
SelectTimeZoneAdapter(this, allTimeZones) {
|
||||
hideKeyboard()
|
||||
val data = Intent()
|
||||
data.putExtra(TIME_ZONE, it as MyTimeZone)
|
||||
setResult(RESULT_OK, data)
|
||||
|
@ -78,6 +80,7 @@ class SelectTimeZoneActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
|
||||
hideKeyboard()
|
||||
finish()
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue