comparison src/cagou/plugins/plugin_upload_voice.py @ 96:641678ddc26c

upload (voice): fixed crash on desktop
author Goffi <goffi@goffi.org>
date Thu, 29 Dec 2016 23:47:04 +0100
parents 3e3c097b07b7
children
comparison
equal deleted inserted replaced
95:3e3c097b07b7 96:641678ddc26c
23 from sat.core.i18n import _ 23 from sat.core.i18n import _
24 from kivy.uix.boxlayout import BoxLayout 24 from kivy.uix.boxlayout import BoxLayout
25 import sys 25 import sys
26 import time 26 import time
27 from kivy.clock import Clock 27 from kivy.clock import Clock
28 from kivy import properties
28 if sys.platform == "android": 29 if sys.platform == "android":
29 from kivy import properties
30 from plyer import audio 30 from plyer import audio
31 31
32 32
33 PLUGIN_INFO = { 33 PLUGIN_INFO = {
34 "name": _(u"voice"), 34 "name": _(u"voice"),