mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-23 06:50:53 -04:00
Fixed invalid import
This commit is contained in:
parent
7ac24c76ec
commit
534acaba17
1 changed files with 6 additions and 1 deletions
|
@ -1640,7 +1640,12 @@ class SidebandApp(MDApp):
|
||||||
raise NotImplementedError(audio_field[0])
|
raise NotImplementedError(audio_field[0])
|
||||||
|
|
||||||
if self.msg_sound == None:
|
if self.msg_sound == None:
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
from plyer import audio
|
from plyer import audio
|
||||||
|
self.request_microphone_permission()
|
||||||
|
else:
|
||||||
|
from sbapp.plyer import audio
|
||||||
|
|
||||||
self.msg_sound = audio
|
self.msg_sound = audio
|
||||||
|
|
||||||
self.msg_sound._file_path = temp_path
|
self.msg_sound._file_path = temp_path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue