feat(Profile): only show note saved if note has not been hidden

The note text field being hidden is already enough comfirmation that the
note has been hidden.
This commit is contained in:
FineFindus
2024-08-12 07:15:22 +02:00
parent a6f1d981db
commit 78ec24ff0c

View File

@@ -469,7 +469,8 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
public void onSuccess(Relationship result) {
updateRelationship(result);
invalidateOptionsMenu();
Toast.makeText(MastodonApp.context, R.string.mo_personal_note_saved, Toast.LENGTH_SHORT).show();
if(!TextUtils.isEmpty(result.note))
Toast.makeText(MastodonApp.context, R.string.mo_personal_note_saved, Toast.LENGTH_SHORT).show();
}
@Override