diff --git a/app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java b/app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java index bd5525de..7d97be8f 100644 --- a/app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java +++ b/app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java @@ -622,6 +622,9 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A * Updates sorting method icon. */ private void updateSortMethodIcon(CategorySortingMethod method) { + if (method == null) + method = CategorySortingMethod.SORT_MODIFIED_DESC; + switch (method){ case SORT_MODIFIED_DESC : activityBinding.sortingMethod.setImageResource(R.drawable.modification_desc);