Skip to content

Commit 4e9a446

Browse files
author
Tom James Holub
committed
also removed secure reply wording + refactor | #72
1 parent b4d06aa commit 4e9a446

File tree

6 files changed

+3
-36
lines changed

6 files changed

+3
-36
lines changed

.idea/codeStyleSettings.xml

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlowCrypt/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
<activity
5252
android:name=".ui.activity.ReplyActivity"
53-
android:label="@string/security_reply"
53+
android:label="@string/reply"
5454
android:screenOrientation="portrait" />
5555

5656
<activity

FlowCrypt/src/main/java/com/flowcrypt/email/ui/activity/ComposeActivity.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,4 @@ protected void notifyFragmentAboutChangeMessageEncryptionType(MessageEncryptionT
8080
}
8181
}
8282

83-
@Override
84-
protected String getSecurityTitle() {
85-
return getString(R.string.compose);
86-
}
87-
88-
@Override
89-
protected String getStandardTitle() {
90-
return getString(R.string.compose);
91-
}
92-
9383
}

FlowCrypt/src/main/java/com/flowcrypt/email/ui/activity/ReplyActivity.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,6 @@ public boolean isCanFinishActivity() {
8080
return replyFragment != null && !replyFragment.isMessageSendingNow();
8181
}
8282

83-
@Override
84-
protected String getSecurityTitle() {
85-
return getString(R.string.security_reply);
86-
}
87-
88-
@Override
89-
protected String getStandardTitle() {
90-
return getString(R.string.reply);
91-
}
92-
9383
@Override
9484
protected void notifyFragmentAboutErrorFromService(int requestCode, int errorType, Exception e) {
9585
ReplyFragment replyFragment = (ReplyFragment)

FlowCrypt/src/main/java/com/flowcrypt/email/ui/activity/base/BaseSendingMessageActivity.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ public abstract class BaseSendingMessageActivity extends BaseBackStackSyncActivi
5656

5757
protected abstract boolean isCanFinishActivity();
5858

59-
protected abstract String getSecurityTitle();
60-
61-
protected abstract String getStandardTitle();
62-
6359
protected abstract void notifyFragmentAboutErrorFromService(int requestCode, int errorType, Exception e);
6460

6561
protected abstract void notifyFragmentAboutChangeMessageEncryptionType(MessageEncryptionType
@@ -185,17 +181,11 @@ public void onMessageEncryptionTypeChange(MessageEncryptionType messageEncryptio
185181
switch (messageEncryptionType) {
186182
case ENCRYPTED:
187183
getAppBarLayout().setBackgroundColor(UIUtil.getColor(this, R.color.colorPrimary));
188-
if (getSupportActionBar() != null) {
189-
getSupportActionBar().setTitle(getSecurityTitle());
190-
}
191184
getAppBarLayout().removeView(nonEncryptedHintView);
192185
break;
193186

194187
case STANDARD:
195188
getAppBarLayout().setBackgroundColor(UIUtil.getColor(this, R.color.red));
196-
if (getSupportActionBar() != null) {
197-
getSupportActionBar().setTitle(getStandardTitle());
198-
}
199189
getAppBarLayout().addView(nonEncryptedHintView);
200190
break;
201191
}

FlowCrypt/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147
<string name="template_remove_recipient">Remove %1$s</string>
148148
<string name="recipient_does_not_use_pgp">Recipient doesn\'t use PGP</string>
149149
<string name="update">Update</string>
150-
<string name="security_reply">Secure Reply</string>
151150
<string name="reply">Reply</string>
152151
<string name="import_public_key">Import Public Key</string>
153152
<string name="private_">Private</string>

0 commit comments

Comments
 (0)