mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
First hide keyboard on back
This commit is contained in:
@@ -160,6 +160,11 @@ public class ActivitySignature extends ActivityBase {
|
||||
getOnBackPressedDispatcher().addCallback(this, new OnBackPressedCallback(true) {
|
||||
@Override
|
||||
public void handleOnBackPressed() {
|
||||
if (Helper.isKeyboardVisible(view)) {
|
||||
Helper.hideKeyboard(view);
|
||||
return;
|
||||
}
|
||||
|
||||
String prev = getIntent().getStringExtra("html");
|
||||
String current = getHtml();
|
||||
boolean dirty = !Objects.equals(prev, current) &&
|
||||
|
||||
Reference in New Issue
Block a user