A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Rework "Cover + Custom" sleep screens to show covers only when currently reading (#1256)

## Summary

The cover/custom setting was a bit misleading to me. Usually after you
start reading a book you never see your customs again unless a cover
fails to render for some reason. With this, you can easily show your
custom images by just sleeping from the menus instead of the reader

## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
specific areas to focus on).

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**< NO >**_

authored by

Ian Chasse and committed by
GitHub
405ce0c3 9bc5111c

+6 -1
+6 -1
src/activities/boot_sleep/SleepActivity.cpp
··· 24 24 case (CrossPointSettings::SLEEP_SCREEN_MODE::CUSTOM): 25 25 return renderCustomSleepScreen(); 26 26 case (CrossPointSettings::SLEEP_SCREEN_MODE::COVER): 27 + return renderCoverSleepScreen(); 27 28 case (CrossPointSettings::SLEEP_SCREEN_MODE::COVER_CUSTOM): 28 - return renderCoverSleepScreen(); 29 + if (APP_STATE.lastSleepFromReader) { 30 + return renderCoverSleepScreen(); 31 + } else { 32 + return renderCustomSleepScreen(); 33 + } 29 34 default: 30 35 return renderDefaultSleepScreen(); 31 36 }