mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Hide keyboard before going to key pair screen
This commit is contained in:
parent
3afd8b8b7f
commit
bd00013f02
@ -2,12 +2,14 @@ package org.thoughtcrime.securesms.loki
|
||||
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import kotlinx.android.synthetic.main.activity_account_details.*
|
||||
import org.thoughtcrime.securesms.BaseActionBarActivity
|
||||
import org.thoughtcrime.securesms.R
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences
|
||||
import org.whispersystems.signalservice.api.crypto.ProfileCipher
|
||||
|
||||
|
||||
class AccountDetailsActivity : BaseActionBarActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
@ -26,6 +28,8 @@ class AccountDetailsActivity : BaseActionBarActivity() {
|
||||
TextSecurePreferences.setProfileName(this, name)
|
||||
}
|
||||
}
|
||||
val inputMethodManager = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
inputMethodManager.hideSoftInputFromWindow(nameEditText.windowToken, 0)
|
||||
startActivity(Intent(this, KeyPairActivity::class.java))
|
||||
finish()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user