Fixed invalid import

This commit is contained in:
Mark Qvist 2024-06-06 23:37:02 +02:00
parent 7ac24c76ec
commit 534acaba17

View File

@ -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