feat(ProfileFragment): display toast when saving note

It can be quite unclear if the note has been saved. This adds a toast,
to indicate that the profile note has been saved.
This commit is contained in:
FineFindus 2024-08-11 11:48:51 +02:00
parent 91cb616164
commit 134513babd
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
2 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
public void onSuccess(Relationship result) {
updateRelationship(result);
invalidateOptionsMenu();
Toast.makeText(getContext(), R.string.mo_personal_note_saved, Toast.LENGTH_SHORT).show();
}
@Override

View File

@ -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>