Skip to content

Commit

Permalink
feat(ProfileFragment): display toast when saving note
Browse files Browse the repository at this point in the history
It can be quite unclear if the note has been saved. This adds a toast,
to indicate that the profile note has been saved.
  • Loading branch information
FineFindus committed Aug 11, 2024
1 parent 91cb616 commit 134513b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ private void savePrivateNote(String note){
public void onSuccess(Relationship result) {
updateRelationship(result);
invalidateOptionsMenu();
Toast.makeText(getContext(), R.string.mo_personal_note_saved, Toast.LENGTH_SHORT).show();
}

@Override
Expand Down
1 change: 1 addition & 0 deletions mastodon/src/main/res/values/strings_mo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<string name="mo_settings_app_version" translatable="false">Moshidon v%1$s (%2$d)</string>

<string name="mo_personal_note">Add a note about this profile</string>
<string name="mo_personal_note_saved">Note saved</string>
<string name="mo_personal_note_confirm">Confirm changes to note</string>
<string name="mo_personal_note_update_failed">Failed to save note</string>
<string name="mo_settings_contribute">Contribute to Moshidon</string>
Expand Down

0 comments on commit 134513b

Please sign in to comment.