#397 Don't show "Uncategorized" in note header

This commit is contained in:
Niedermann IT-Dienstleistungen 2018-08-25 16:18:50 +02:00
parent 5203698f6f
commit 2738558a8e

View file

@ -198,8 +198,9 @@ public class EditNoteActivity extends AppCompatActivity implements BaseNoteFragm
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setTitle(note.getTitle());
String subtitle = note.getCategory().isEmpty() ? getString(R.string.action_uncategorized) : NoteUtil.extendCategory(note.getCategory());
actionBar.setSubtitle(subtitle);
if(!note.getCategory().isEmpty()) {
actionBar.setSubtitle(NoteUtil.extendCategory(note.getCategory()));
}
}
}
}