diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index 78bced347c..a0f6bb800a 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -1308,10 +1308,13 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac final boolean export = getArguments().getBoolean("export"); View dview = LayoutInflater.from(getContext()).inflate(R.layout.dialog_password, null); + TextView tvCaption = dview.findViewById(R.id.tvCaption); etPassword1 = dview.findViewById(R.id.tilPassword1); etPassword2 = dview.findViewById(R.id.tilPassword2); TextView tvImportHint = dview.findViewById(R.id.tvImportHint); + tvCaption.setText(export ? R.string.title_setup_export : R.string.title_setup_import); + if (savedInstanceState != null) { etPassword1.getEditText().setText(savedInstanceState.getString("fair:password1")); etPassword2.getEditText().setText(savedInstanceState.getString("fair:password2")); diff --git a/app/src/main/res/layout/dialog_password.xml b/app/src/main/res/layout/dialog_password.xml index ea89f7d694..d27dfc9824 100644 --- a/app/src/main/res/layout/dialog_password.xml +++ b/app/src/main/res/layout/dialog_password.xml @@ -1,58 +1,74 @@ - - - - - + + + + + + + + + + + + + + - - - - - - - - + + + + + - - - - \ No newline at end of file + android:layout_marginTop="12dp" + android:text="@string/title_setup_import_do" + android:textAppearance="@style/TextAppearance.AppCompat.Small" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/tilPassword2" /> + + \ No newline at end of file