mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-28 11:29:01 +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();
|
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()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue