comparison sat/plugins/plugin_adhoc_dbus.py @ 3106:7f7cdc6ecfd8

plugin android: sound notification + change settings: - new notification sound - vibration and notification sound are now activated depending on ringer mode (normal, vibrate or silent) - notification sound/vibration can be configured in settings.
author Goffi <goffi@goffi.org>
date Fri, 03 Jan 2020 13:21:27 +0100
parents fee60f17ebac
children 9d0df638c8b4
comparison
equal deleted inserted replaced
3105:eec0c25c796b 3106:7f7cdc6ecfd8
38 try: 38 try:
39 import dbus 39 import dbus
40 from dbus.mainloop.glib import DBusGMainLoop 40 from dbus.mainloop.glib import DBusGMainLoop
41 except ImportError: 41 except ImportError:
42 dbus = None 42 dbus = None
43 log.warning("Missing module dbus, please download/install it" 43 log.warning("Missing module dbus, please download/install it, "
44 "auto D-Bus discovery will be disabled") 44 "auto D-Bus discovery will be disabled")
45 45
46 else: 46 else:
47 DBusGMainLoop(set_as_default=True) 47 DBusGMainLoop(set_as_default=True)
48 48