Set variable string for note to self

This commit is contained in:
Arne 2024-09-20 13:42:31 +02:00
parent 89b489b25f
commit 4fb7647285
3 changed files with 3 additions and 2 deletions

View file

@ -301,7 +301,7 @@ public class ChooseContactActivity extends AbstractSearchableListItemActivity im
} }
final Contact self = new Contact(account.getSelfContact()); final Contact self = new Contact(account.getSelfContact());
self.setSystemName("Note to Self"); self.setSystemName(getString(R.string.note_to_self));
if (self.match(this, needle)) { if (self.match(this, needle)) {
getListItems().add(self); getListItems().add(self);
} }

View file

@ -1433,7 +1433,7 @@ public class StartConversationActivity extends XmppActivity
} }
final Contact self = new Contact(account.getSelfContact()); final Contact self = new Contact(account.getSelfContact());
self.setSystemName("Note to Self"); self.setSystemName(getString(R.string.note_to_self));
if (self.match(this, needle)) { if (self.match(this, needle)) {
this.contacts.add(self); this.contacts.add(self);
} }

View file

@ -1122,4 +1122,5 @@
<string name="show_more">... show more</string> <string name="show_more">... show more</string>
<string name="pref_show_show_nav_drawer_summary">Activate a navigation drawer to better sort chats</string> <string name="pref_show_show_nav_drawer_summary">Activate a navigation drawer to better sort chats</string>
<string name="pref_show_show_nav_drawer">Navigation drawer</string> <string name="pref_show_show_nav_drawer">Navigation drawer</string>
<string name="note_to_self">Note to Self</string>
</resources> </resources>