From bd00013f028e726fe6ff93e4a1e34e3306068cfb Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 20 Jun 2019 14:25:38 +1000 Subject: [PATCH] Hide keyboard before going to key pair screen --- src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt b/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt index bde386b8fa..688e2e0248 100644 --- a/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/AccountDetailsActivity.kt @@ -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() }