mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-24 13:56:14 +03:00
#397 Don't show "Uncategorized" in note header
This commit is contained in:
parent
5203698f6f
commit
2738558a8e
1 changed files with 3 additions and 2 deletions
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue