hide the keyboard at opening ReadText activity

This commit is contained in:
tibbi 2017-10-29 13:00:06 +01:00
parent 3c0cd4ff6e
commit 4b4edf9b15
2 changed files with 6 additions and 5 deletions

View file

@ -49,6 +49,11 @@
</intent-filter>
</activity>
<activity
android:name=".activities.SettingsActivity"
android:label="@string/settings"
android:parentActivityName=".activities.MainActivity"/>
<activity
android:name="com.simplemobiletools.commons.activities.AboutActivity"
android:label="@string/about"
@ -64,11 +69,6 @@
android:label="@string/third_party_licences"
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity"/>
<activity
android:name=".activities.SettingsActivity"
android:label="@string/settings"
android:parentActivityName=".activities.MainActivity"/>
<activity
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
android:label="@string/customize_colors"

View file

@ -20,6 +20,7 @@ class ReadTextActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_read_text)
hideKeyboard()
handlePermission(PERMISSION_WRITE_STORAGE) {
if (it) {