From 7e9451ebe198854b105f896bab89c1518ca837dd Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 16 May 2019 14:16:09 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/FragmentIdentity.java | 8 ++++++++ app/src/main/res/layout/dialog_signature.xml | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java index 0f6623a99e..439a115d36 100644 --- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java +++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java @@ -335,6 +335,7 @@ public class FragmentIdentity extends FragmentBase { etHtml.setText(signature); new DialogBuilderLifecycle(getContext(), getViewLifecycleOwner()) + .setTitle(R.string.title_edit_html) .setView(dview) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override @@ -345,6 +346,13 @@ public class FragmentIdentity extends FragmentBase { } }) .show(); + + new Handler().post(new Runnable() { + @Override + public void run() { + etHtml.requestFocus(); + } + }); } }); diff --git a/app/src/main/res/layout/dialog_signature.xml b/app/src/main/res/layout/dialog_signature.xml index bed5c551f8..3cafa7d7eb 100644 --- a/app/src/main/res/layout/dialog_signature.xml +++ b/app/src/main/res/layout/dialog_signature.xml @@ -11,12 +11,11 @@ android:background="@null" android:fontFamily="monospace" android:gravity="top" - android:hint="@string/title_edit_html" android:imeOptions="actionDone" android:inputType="text|textMultiLine" android:minHeight="120dp" android:padding="12dp" - android:textAppearance="@style/TextAppearance.AppCompat.Medium" + android:textAppearance="@style/TextAppearance.AppCompat.Small" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> \ No newline at end of file