From 55fa3db6a14322882b32f328a80bba0f4bd464db Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Fri, 16 Oct 2015 02:32:32 +0200 Subject: [PATCH] Minor tweak to handle FW 5.6.5 better... When launching KOReader with the framework up from KUAL... Our gentle hide/unhide method doesn't work anymore, which leads to various issues, the most obvious being not getting a refresh to the default UI on exit... --- platform/kindle/koreader.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/platform/kindle/koreader.sh b/platform/kindle/koreader.sh index 79576fd3c..32896dca7 100755 --- a/platform/kindle/koreader.sh +++ b/platform/kindle/koreader.sh @@ -261,8 +261,14 @@ if [ "${STOP_FRAMEWORK}" == "no" -a "${INIT_TYPE}" == "upstart" ] ; then #lipc-set-prop com.lab126.pillow disableEnablePillow enable logmsg "Restoring the status bar . . ." lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "default_status_bar", "function": "nativeBridge.showMe();"}' - # Poke the search bar too, so that we get a proper refresh ;) - lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "search_bar", "function": "nativeBridge.hideMe(); nativeBridge.showMe();"}' + # And now we want to poke something to refresh the UI... + if [ "$(printf "%.3s" $(grep '^Kindle 5' /etc/prettyversion.txt 2>&1 | sed -n -r 's/^(Kindle)([[:blank:]]*)([[:digit:].]*)(.*?)$/\3/p' | tr -d '.'))" -ge "565" ] ; then + # FIXME: The old search_bar method doesn't seem to work anymore since FW 5.6.5... Get at least the homescreen back. We're still missing the men :/. + lipc-set-prop com.lab126.appmgrd start app://com.lab126.booklet.home + else + # Poke the search bar too, so that we get a proper refresh ;) + lipc-set-prop com.lab126.pillow interrogatePillow '{"pillowId": "search_bar", "function": "nativeBridge.hideMe(); nativeBridge.showMe();"}' + fi fi fi