Small improvement

pull/156/head
M66B 5 years ago
parent a7942aa80b
commit 7e9451ebe1

@ -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();
}
});
}
});

@ -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" />
</androidx.constraintlayout.widget.ConstraintLayout>
Loading…
Cancel
Save