Don't mess with IME actions when doze isn't needed

Doing this was causing the keyboard action button to cycle between password and password confirmation field. Now it creates the account (if the passwords match).
This commit is contained in:
Torsten Grote
2024-05-10 10:44:09 -03:00
parent 0724bb89b2
commit 7d95eb4de6

View File

@@ -28,7 +28,6 @@ import static android.content.pm.PackageManager.PERMISSION_GRANTED;
import static android.os.Build.VERSION.SDK_INT;
import static android.view.View.INVISIBLE;
import static android.view.View.VISIBLE;
import static android.view.inputmethod.EditorInfo.IME_ACTION_DONE;
import static androidx.core.content.ContextCompat.checkSelfPermission;
import static org.briarproject.bramble.api.crypto.PasswordStrengthEstimator.QUITE_WEAK;
import static org.briarproject.briar.android.util.UiUtils.hideViewOnSmallScreen;
@@ -80,8 +79,6 @@ public class SetPasswordFragment extends SetupFragment {
if (!viewModel.needToShowDozeFragment()) {
nextButton.setText(R.string.create_account_button);
int options = passwordConfirmation.getImeOptions();
passwordConfirmation.setImeOptions(options | IME_ACTION_DONE);
}
viewModel.getIsCreatingAccount()