Skip to content

Commit

Permalink
Fix detekt long line issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMucientes committed Jan 2, 2025
1 parent 9b95243 commit 5639575
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ class OrderListFragment :
}
tracker?.onSaveInstanceState(outState)
viewModel.orderIdAndPositionBackup =
((binding.orderListView.ordersList.adapter as? OrderListAdapter)?.orderIdAndPosition
?: emptyMap()) as MutableMap<Long, Int>
((binding.orderListView.ordersList.adapter as? OrderListAdapter)?.orderIdAndPosition ?: emptyMap())
as MutableMap<Long, Int>
}

override fun onViewStateRestored(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -631,9 +631,11 @@ class OrderListFragment :
actionText = event.actionText,
action = event.action
)

is OrderListViewModel.OrderListEvent.RetryLoadingOrders -> refreshOrders()
is OrderListViewModel.OrderListEvent.OpenOrderCreationWithSimplePaymentsMigration ->
openOrderCreationFragment(indicateSimplePaymentsMigration = true)

is OrderListViewModel.OrderListEvent.ShowUpdateStatusDialog -> {
showBulkUpdateStatusDialog(event.currentStatus, event.orderStatusList)
}
Expand All @@ -650,6 +652,7 @@ class OrderListFragment :
viewModel.trashOrder(event.orderId)
selectedOrder.selectOrder(-1L)
}

else -> event.isHandled = false
}
}
Expand Down

0 comments on commit 5639575

Please sign in to comment.