Skip to content

Commit 3f2161f

Browse files
committed
Update Sort Method Icon null reference fix
1 parent d0314da commit 3f2161f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/it/niedermann/owncloud/notes/main/MainActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,9 @@ public boolean onSupportNavigateUp() {
622622
* Updates sorting method icon.
623623
*/
624624
private void updateSortMethodIcon(CategorySortingMethod method) {
625+
if (method == null)
626+
method = CategorySortingMethod.SORT_MODIFIED_DESC;
627+
625628
switch (method){
626629
case SORT_MODIFIED_DESC :
627630
activityBinding.sortingMethod.setImageResource(R.drawable.modification_desc);

0 commit comments

Comments
 (0)