Using any sort option on empty list crashes app

Expected behavior

Using any of the sort option on an empty list should show toast notification of no list to sort, or should be greyed out when there is no list available.

Actual behavior

Trying to sort an empty list makes the app to crash.

How to reproduce

  • Download app here.
  • Delete the default list to get an empty list.
  • Use the sort option on the empty list.
  • App crashes

  • App: Shopping list version 0.9.0
  • Operating system: Android Nougat 7.0

Recording Of The Bug

20180330_175816.gif



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now