Update toast message that is displayed when changing accounts

This commit is contained in:
Luna712 2023-11-04 19:36:44 -06:00
parent d0cf4c20da
commit 01ce02372e
2 changed files with 2 additions and 1 deletions

View file

@ -151,7 +151,7 @@ object DataStoreHelper {
fun setAccount(account: Account, refreshHomePage: Boolean) {
selectedKeyIndex = account.keyIndex
showToast(account.name)
showToast(context?.getString(R.string.logged_account, account.name) ?: account.name)
MainActivity.bookmarksUpdatedEvent(true)
MainActivity.reloadLibraryEvent(true)
if (refreshHomePage) {

View file

@ -728,4 +728,5 @@
<string name="select_an_account">Select an Account</string>
<string name="manage_accounts">Manage Accounts</string>
<string name="edit_account">Edit account</string>
<string name="logged_account" formatted="true">Logged in as %s</string>
</resources>