Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ protected void saveNote(@Nullable ISyncCallback callback) {
* Opens a dialog in order to chose a category
*/
private void showCategorySelector() {
if (note == null) {
Log.e(TAG, "note is null, showCategorySelector");
return;
}

final var fragmentId = "fragment_category";
final var manager = requireActivity().getSupportFragmentManager();
final var frag = manager.findFragmentByTag(fragmentId);
Expand All @@ -405,6 +410,11 @@ private void showCategorySelector() {
* Opens a dialog in order to chose a category
*/
public void showEditTitleDialog() {
if (note == null) {
Log.e(TAG, "note is null, showEditTitleDialog");
return;
}

saveNote(null);
final var fragmentId = "fragment_edit_title";
final var manager = requireActivity().getSupportFragmentManager();
Expand Down
Loading