Bookmarks (#153)

* Empty bookmarks screen

* Bookmarks object

* Long press support

* Lint fix

* Context menu v1

* A working context menu

* Basic bookmarks in context menu

* Use a root content node for bookmarks

* context menu animation

* small tweak

* move logger around, adjust animation

* Lint fix

* Restore logger fix

* Cache channel info

* Bookmarks v1

* Added comment

* Adjust "popular" feed error handling

* Progress with bookmarks

* Add todo

* add todo

* handle roDateTime logging

* logger adjustment

* Use yaml for api and layout

* rename requestData to feedSource

* Restructure things

* Lint fix

* remove comment

* introduce feedSource id

* small cleanup

* playlist context menu

* Context menu for the channel view

* changelog

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-10-19 19:16:27 -04:00
1 parent 620a8a6e2b
commit c740d5e0a0
63 files changed
+1889 -510

No files matched your search

@@ -0,0 +1,39 @@
const LONG_PRESS_KEY = "OK_LONG_PRESS"
function InitializeLongPressTimer(duration = 1.0 as float)
m._longPressTimer = CreateObject("roSGNode", "Timer")
m._longPressTimer.duration = duration
m._longPressFired = false
m._longPressTimer.ObserveField("fire", FuncName(LongPressTimerFired))
end function
function LongPressHandler(key as string, press as boolean) as boolean
#if DEBUG
if key = "Lit_l"
LogInfo("Simulating long press using key:", key, "press:", press)
m._longPressFired = true
return OnkeyEvent(LONG_PRESS_KEY, press)
end if
#end if
if key = "OK" and press
m._longPressTimer.control = "stop"
m._longPressTimer.control = "start"
m._longPressFired = false
return true
end if
if key = "OK" and not press
m._longPressTimer.control = "stop"
if m._longPressFired = true
m._longPressFired = false
return true
end if
end if
return false
end function
function LongPressTimerFired()
m._longPressFired = true
OnkeyEvent(LONG_PRESS_KEY, true)
end function