Skip to content

Commit

Permalink
Update toast message when a code is added (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintPatrck authored Apr 25, 2024
1 parent 3adc436 commit cb158b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class ItemListingViewModel @Inject constructor(
CreateItemResult.Success -> {
sendEvent(
event = ItemListingEvent.ShowToast(
message = R.string.authenticator_key_added.asText(),
message = R.string.verification_code_added.asText(),
),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class ManualCodeEntryViewModel @Inject constructor(

CreateItemResult.Success -> {
sendEvent(
event = ManualCodeEntryEvent.ShowToast(R.string.item_added.asText()),
event = ManualCodeEntryEvent.ShowToast(
message = R.string.verification_code_added.asText(),
),
)
sendEvent(
event = ManualCodeEntryEvent.NavigateBack,
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
<string name="empty_item_list_instruction">Add a new code, sync an existing account, or import codes to secure your accounts.</string>
<string name="add_code">Add code</string>
<string name="authenticator_key_read_error">Cannot read authenticator key.</string>
<string name="authenticator_key_added">Authenticator key added.</string>
<string name="item_added">Item added</string>
<string name="verification_code_added">Verification code added</string>
<string name="account_info">Account info</string>
<string name="refresh_period">Refresh period</string>
<string name="algorithm">Algorithm</string>
Expand Down

0 comments on commit cb158b0

Please sign in to comment.