#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(); ActionBar actionBar = getSupportActionBar();
if (actionBar != null) { if (actionBar != null) {
actionBar.setTitle(note.getTitle()); actionBar.setTitle(note.getTitle());
String subtitle = note.getCategory().isEmpty() ? getString(R.string.action_uncategorized) : NoteUtil.extendCategory(note.getCategory()); if(!note.getCategory().isEmpty()) {
actionBar.setSubtitle(subtitle); actionBar.setSubtitle(NoteUtil.extendCategory(note.getCategory()));
}
} }
} }
} }