From 930731d67cbe6aed59592ed4ab3fdc6523fc2245 Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Thu, 14 Mar 2019 10:37:25 +0100 Subject: [PATCH] [UX] Gesture manager: add a little notification to the wifi on action (#4786) Fixes #4783. Perhaps this should be in NetworkManager instead. --- frontend/apps/reader/modules/readergesture.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/apps/reader/modules/readergesture.lua b/frontend/apps/reader/modules/readergesture.lua index b578e3984..bef028797 100644 --- a/frontend/apps/reader/modules/readergesture.lua +++ b/frontend/apps/reader/modules/readergesture.lua @@ -723,6 +723,11 @@ function ReaderGesture:gestureAction(action, ges) local NetworkMgr = require("ui/network/manager") if not NetworkMgr:isOnline() then + UIManager:show(InfoMessage:new{ + text = _("Enabling wifi…"), + timeout = 1, + }) + -- NB Normal widgets should use NetworkMgr:promptWifiOn() -- This is specifically the toggle wifi action, so consent is implied. NetworkMgr:turnOnWifi() @@ -747,6 +752,11 @@ function ReaderGesture:gestureAction(action, ges) local NetworkMgr = require("ui/network/manager") if not NetworkMgr:isOnline() then + UIManager:show(InfoMessage:new{ + text = _("Enabling wifi…"), + timeout = 1, + }) + -- NB Normal widgets should use NetworkMgr:promptWifiOn() -- This is specifically the toggle wifi action, so consent is implied. NetworkMgr:turnOnWifi()