unset name if hashtag is applied from name
closes sk22#588
This commit is contained in:
parent
d05f3932b2
commit
e47f253c0e
|
@ -333,7 +333,10 @@ public class EditTimelinesFragment extends RecyclerFragment<TimelineDefinition>
|
|||
tagsNone.chipifyAllUnterminatedTokens();
|
||||
String name = editText.getText().toString().trim();
|
||||
String mainHashtag = tagMain.getText().toString().trim();
|
||||
if (TextUtils.isEmpty(mainHashtag)) mainHashtag = name;
|
||||
if (TextUtils.isEmpty(mainHashtag)) {
|
||||
mainHashtag = name;
|
||||
name = null;
|
||||
}
|
||||
if (TextUtils.isEmpty(mainHashtag)) {
|
||||
Toast.makeText(ctx, R.string.sk_add_timeline_tag_error_empty, Toast.LENGTH_SHORT).show();
|
||||
onSave.accept(null);
|
||||
|
|
Loading…
Reference in New Issue