summaryrefslogtreecommitdiff
path: root/metawatch/metawatchdigital.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-03-28 18:07:34 +0100
committerJavier S. Pedro <maemo@javispedro.com>2013-03-28 18:07:34 +0100
commit94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac (patch)
tree40f85ce5978af4f6f1f0db1ce914d19f1f6a44b5 /metawatch/metawatchdigital.cpp
parentff3e0c160733707ce0bb835362d2730b407b0126 (diff)
downloadsowatch-94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac.tar.gz
sowatch-94d434ca1c60d4ff9e518fdcdcfd867abf03c4ac.zip
add change mode command to workaround mode priorities
Diffstat (limited to 'metawatch/metawatchdigital.cpp')
-rw-r--r--metawatch/metawatchdigital.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/metawatch/metawatchdigital.cpp b/metawatch/metawatchdigital.cpp
index abe47a9..31f3276 100644
--- a/metawatch/metawatchdigital.cpp
+++ b/metawatch/metawatchdigital.cpp
@@ -104,8 +104,11 @@ void MetaWatchDigital::displayNotification(Notification *n)
// Render the notification and display it before invoking haptic feedback
_currentMode = NotificationMode;
+ changeMode(_currentMode);
+
renderNotification(n);
+ // This will trigger haptic feedback, etc.
MetaWatch::displayNotification(n);
}
@@ -334,16 +337,18 @@ QImage MetaWatchDigital::iconForNotification(const Notification *n)
void MetaWatchDigital::handleWatchConnected()
{
// Grab all of the buttons that are of interest to us
- // We do not grab the D button, as it triggers the LED.
- grabButton(IdleMode, BtnA);
+ // We do not grab the F button, as it triggers the LED.
+ grabButton(IdleMode, BtnA); // Required for app-switch
+ grabButton(IdleMode, BtnB); // What does this do?
+ grabButton(IdleMode, BtnD); // Currently not supported
grabButton(NotificationMode, BtnA);
grabButton(NotificationMode, BtnB);
grabButton(NotificationMode, BtnC);
grabButton(ApplicationMode, BtnA);
grabButton(ApplicationMode, BtnB);
grabButton(ApplicationMode, BtnC);
+ grabButton(ApplicationMode, BtnD);
grabButton(ApplicationMode, BtnE);
- grabButton(ApplicationMode, BtnF);
// Configure to show watch-rendered clock in idle screen
configureLcdIdleSystemArea(false);