diff options
| -rw-r--r-- | src/displayapp/screens/ApplicationList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h index 77e1d39e..978f0287 100644 --- a/src/displayapp/screens/ApplicationList.h +++ b/src/displayapp/screens/ApplicationList.h @@ -38,7 +38,7 @@ namespace Pinetime { static constexpr int appsPerScreen = 6; - static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1; + static constexpr int nScreens = UserAppTypes::Count > 0 ? (UserAppTypes::Count - 1) / appsPerScreen + 1 : 1; ScreenList<nScreens> screens; }; |
