fix: allows for editing timeline badges again. fixes sk22#800

This commit is contained in:
LucasGGamerM 2023-09-02 20:40:55 -03:00
parent 0dcade767b
commit ce51fc3c0d
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ public class EditTimelinesFragment extends MastodonRecyclerFragment<TimelineDefi
mainHashtag = name;
name = null;
}
if (TextUtils.isEmpty(mainHashtag)) {
if (TextUtils.isEmpty(mainHashtag) && (item != null && item.getType() == TimelineDefinition.TimelineType.HASHTAG)) {
Toast.makeText(ctx, R.string.sk_add_timeline_tag_error_empty, Toast.LENGTH_SHORT).show();
onSave.accept(null);
return;