Added hint about importing Gmail accounts

pull/200/head
M66B 3 years ago
parent 241533d99b
commit 23f92af107

@ -49,6 +49,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBarDrawerToggle; import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AlertDialog;
import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Group;
import androidx.core.view.GravityCompat; import androidx.core.view.GravityCompat;
import androidx.documentfile.provider.DocumentFile; import androidx.documentfile.provider.DocumentFile;
import androidx.drawerlayout.widget.DrawerLayout; import androidx.drawerlayout.widget.DrawerLayout;
@ -1329,8 +1330,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
TextView tvCaption = dview.findViewById(R.id.tvCaption); TextView tvCaption = dview.findViewById(R.id.tvCaption);
etPassword1 = dview.findViewById(R.id.tilPassword1); etPassword1 = dview.findViewById(R.id.tilPassword1);
etPassword2 = dview.findViewById(R.id.tilPassword2); etPassword2 = dview.findViewById(R.id.tilPassword2);
TextView tvExportHint = dview.findViewById(R.id.tvExportHint); Group grpExport = dview.findViewById(R.id.grpExport);
TextView tvImportHint = dview.findViewById(R.id.tvImportHint); Group grpImport = dview.findViewById(R.id.grpImport);
tvCaption.setText(export ? R.string.title_setup_export : R.string.title_setup_import); tvCaption.setText(export ? R.string.title_setup_export : R.string.title_setup_import);
@ -1340,8 +1341,8 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
} }
etPassword2.setVisibility(export ? View.VISIBLE : View.GONE); etPassword2.setVisibility(export ? View.VISIBLE : View.GONE);
tvExportHint.setVisibility(export ? View.VISIBLE : View.GONE); grpExport.setVisibility(export ? View.VISIBLE : View.GONE);
tvImportHint.setVisibility(export ? View.GONE : View.VISIBLE); grpImport.setVisibility(export ? View.GONE : View.VISIBLE);
return new AlertDialog.Builder(getContext()) return new AlertDialog.Builder(getContext())
.setView(dview) .setView(dview)

@ -94,5 +94,28 @@
android:textStyle="italic" android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvExportHint" /> app:layout_constraintTop_toBottomOf="@id/tvExportHint" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvImportGmail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:text="@string/title_setup_import_gmail"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="italic"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvImportHint" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpExport"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvExportHint" />
<androidx.constraintlayout.widget.Group
android:id="@+id/grpImport"
android:layout_width="0dp"
android:layout_height="0dp"
app:constraint_referenced_ids="tvImportHint,tvImportGmail" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</eu.faircode.email.ScrollViewEx> </eu.faircode.email.ScrollViewEx>

@ -241,6 +241,7 @@
</string> </string>
<string name="title_setup_export_do">The export file will contain all settings and data, but won\'t contain messages</string> <string name="title_setup_export_do">The export file will contain all settings and data, but won\'t contain messages</string>
<string name="title_setup_import_do">Imported accounts will be added without overwriting any existing ones</string> <string name="title_setup_import_do">Imported accounts will be added without overwriting any existing ones</string>
<string name="title_setup_import_gmail">Gmail accounts set up with the quick setup wizard will only be imported if the corresponding account is present on the device</string>
<string name="title_setup_password">Password</string> <string name="title_setup_password">Password</string>
<string name="title_setup_password_chars">Password contains control or whitespace characters</string> <string name="title_setup_password_chars">Password contains control or whitespace characters</string>
<string name="title_setup_password_repeat">Repeat password</string> <string name="title_setup_password_repeat">Repeat password</string>

Loading…
Cancel
Save