fix empty hashtag when editing
This commit is contained in:
parent
be425282a6
commit
d05f3932b2
|
@ -334,7 +334,7 @@ public class EditTimelinesFragment extends RecyclerFragment<TimelineDefinition>
|
||||||
String name = editText.getText().toString().trim();
|
String name = editText.getText().toString().trim();
|
||||||
String mainHashtag = tagMain.getText().toString().trim();
|
String mainHashtag = tagMain.getText().toString().trim();
|
||||||
if (TextUtils.isEmpty(mainHashtag)) mainHashtag = name;
|
if (TextUtils.isEmpty(mainHashtag)) mainHashtag = name;
|
||||||
if (item == null && TextUtils.isEmpty(mainHashtag)) {
|
if (TextUtils.isEmpty(mainHashtag)) {
|
||||||
Toast.makeText(ctx, R.string.sk_add_timeline_tag_error_empty, Toast.LENGTH_SHORT).show();
|
Toast.makeText(ctx, R.string.sk_add_timeline_tag_error_empty, Toast.LENGTH_SHORT).show();
|
||||||
onSave.accept(null);
|
onSave.accept(null);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue