feat: wakeup target detection (#731)

## Summary

* If going to sleep was from the Reader view, wake up to the same book.
Otherwise, wakeup to the Home view
This commit is contained in:
Arthur Tazhitdinov authored and GitHub committed 2026-02-09 05:01:30 +11:00
1 parent 8b74591571
commit 3b3b248adc
5 files changed
+17 -4

No files matched your search

+1
View File
@@ -23,4 +23,5 @@ class Activity {
virtual void loop() {}
virtual bool skipLoopDelay() { return false; }
virtual bool preventAutoSleep() { return false; }
virtual bool isReaderActivity() const { return false; }
};
+1
View File
@@ -34,4 +34,5 @@ class ReaderActivity final : public ActivityWithSubactivity {
onGoBack(onGoBack),
onGoToLibrary(onGoToLibrary) {}
void onEnter() override;
bool isReaderActivity() const override { return true; }
};