add device message for 1.10

This commit is contained in:
B. Petersen
2020-06-24 14:17:03 +02:00
parent 0285ec1041
commit f766cbc3c2
3 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ this will take some time - meanwhile we're doing some housekeeping:
$ ./tools/tx-pull-translations.sh
$ cd ../deltachat-pages; ./tools/create-local-help.py; cd ../deltachat-android
4. update CHANGELOG.md
4. add a device message to ConversationListActivity::onCreate()
and update CHANGELOG.md
(the core-changelog at
https://github.com/deltachat/deltachat-core-rust/blob/master/CHANGELOG.md
and the "N commits to master since last release" on
+1
View File
@@ -698,5 +698,6 @@
<!-- android specific strings, developers: please take care to remove strings that are no longer used! -->
<string name="update_1_10_android">New Delta Chat 1.10 features at a glance: faster, multi-account, blur images, new emojis, reworked notifications, better error-reporting but most importantly:\n\nClick an avatar in profile and enlarge it 🚀</string>
</resources>
@@ -89,6 +89,13 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit
// add welcome message
dcContext.updateDeviceChats();
// update messages - for new messages, do not reuse or modify strings but create new ones.
// it is not needed to keep all past update messages, however, when deleted, also the strings should be deleted.
DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);
msg.setText(getString(R.string.update_1_10_android));
dcContext.addDeviceMsg("update_1_10b_android", msg); // addDeviceMessage() makes sure, messages with the same id are not added twice
// create view
setContentView(R.layout.conversation_list_activity);
Toolbar toolbar = findViewById(R.id.toolbar);