Merge pull request #3996 from deltachat/adb/issue-3926

tweak registraction screen and empty chat hints for classic email
This commit is contained in:
adb
2025-11-05 21:11:07 +01:00
committed by GitHub
5 changed files with 12 additions and 16 deletions
+1
View File
@@ -15,6 +15,7 @@
* fix sorting of old media in gallery
* fix text direction in "x members" subtitle for RTL languages
* fix group invite QR screen's layout
* tweak text hints in advanced classic e-mail configuration
* remove deprecated "companion app" code
* remove deprecated "Watch Sent Folder" preference
* remove deprecated "send self-report" preference
@@ -182,6 +182,9 @@ public class ConversationFragment extends MessageSelectorFragment
else if(dcChat.isDeviceTalk()) {
noMessageTextView.setText(R.string.device_talk_explain);
}
else if(!dcChat.isEncrypted()) {
noMessageTextView.setText(R.string.chat_unencrypted_explanation);
}
else {
String message = getString(R.string.chat_new_one_to_one_hint, dcChat.getName());
noMessageTextView.setText(message);
@@ -124,7 +124,7 @@ public class RegistrationActivity extends BaseActionBarActivity implements DcEve
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setTitle(R.string.login_header);
actionBar.setTitle(R.string.manual_account_setup_option);
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);
actionBar.setElevation(0); // TODO: use custom toolbar instead
+1 -15
View File
@@ -120,7 +120,7 @@
android:layout_height="wrap_content"
android:gravity="left"
android:padding="16dp"
android:text="@string/login_no_servers_hint"
android:text="@string/login_advanced_hint"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/provider_layout" />
@@ -391,20 +391,6 @@
app:layout_constraintStart_toStartOf="@id/guideline_root_start"
app:layout_constraintTop_toBottomOf="@id/cert_check" />
<TextView
android:id="@+id/sub_header"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="1dp"
android:paddingBottom="16dp"
android:text="@string/login_subheader"
android:textColor="@color/gray50"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/view_log_button" />
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
+6
View File
@@ -639,9 +639,14 @@
<string name="welcome_chat_over_email">Secure Decentralized Chat</string>
<string name="scan_invitation_code">Scan Invitation Code</string>
<string name="login_title">Log In</string>
<string name="login_advanced_hint">For advanced users:\n\n• Do not use an account you\'re using in another app.\n\n• Classic e-mail server allow unencrypted chats marked by an envelope icon.</string>
<!-- deprecated -->
<string name="login_header">Log into your E-Mail Account</string>
<!-- deprecated -->
<string name="login_explain">Log in with an existing e-mail account</string>
<!-- deprecated -->
<string name="login_subheader">For known e-mail providers additional settings are set up automatically. Sometimes IMAP needs to be enabled in the web settings. Consult your e-mail provider or friends for help.</string>
<!-- deprecated -->
<string name="login_no_servers_hint">Delta Chat does not collect user data, everything stays on your device.</string>
<string name="login_inbox">Inbox</string>
<string name="login_imap_login">IMAP Login Name</string>
@@ -962,6 +967,7 @@
<string name="ephemeral_timer_weeks_by_you">You set disappearing messages timer to %1$s weeks.</string>
<!-- %1$s will be replaced by the number of weeks (always >1) the timer is set to, %2$s will be replaced by name and address of the contact -->
<string name="ephemeral_timer_weeks_by_other">Disappearing messages timer set to %1$s weeks by %2$s.</string>
<string name="chat_unencrypted_explanation">Messages in this chat use classic email and are not encrypted.</string>
<string name="chat_protection_enabled_tap_to_learn_more">Messages are end-to-end encrypted. Tap to learn more.</string>
<string name="chat_protection_enabled_explanation">All messages in this chat are end-to-end encrypted.\n\nEnd-to-end encryption keeps messages private between you and your chat partners. Not even servers, providers or relays can read them.</string>
<string name="invalid_unencrypted_tap_to_learn_more">⚠️ %1$s requires end-to-end encryption which is not setup for this chat yet. Tap to learn more.</string>