mirror of
https://github.com/markqvist/Sideband.git
synced 2025-11-18 15:01:00 -05:00
Added audio recording UI elements
This commit is contained in:
parent
c32b7ce1cf
commit
4ffe16b209
3 changed files with 161 additions and 34 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import RNS
|
||||
import LXMF
|
||||
import threading
|
||||
import plyer
|
||||
import os.path
|
||||
import time
|
||||
import struct
|
||||
|
|
@ -20,6 +19,7 @@ from .sense import Telemeter, Commands
|
|||
from .plugins import SidebandCommandPlugin, SidebandServicePlugin, SidebandTelemetryPlugin
|
||||
|
||||
if RNS.vendor.platformutils.get_platform() == "android":
|
||||
import plyer
|
||||
from jnius import autoclass, cast
|
||||
# Squelch excessive method signature logging
|
||||
import jnius.reflect
|
||||
|
|
@ -33,7 +33,8 @@ if RNS.vendor.platformutils.get_platform() == "android":
|
|||
jnius.reflect.log_method = mod
|
||||
jnius.reflect.log = redirect_log()
|
||||
############################################
|
||||
|
||||
else:
|
||||
import sbapp.plyer as plyer
|
||||
|
||||
class PropagationNodeDetector():
|
||||
EMITTED_DELTA_GRACE = 300
|
||||
|
|
@ -170,6 +171,10 @@ class SidebandCore():
|
|||
if not os.path.isdir(self.map_cache):
|
||||
os.makedirs(self.map_cache)
|
||||
|
||||
self.rec_cache = self.cache_dir+"/rec"
|
||||
if not os.path.isdir(self.rec_cache):
|
||||
os.makedirs(self.rec_cache)
|
||||
|
||||
self.icon = self.asset_dir+"/icon.png"
|
||||
self.icon_48 = self.asset_dir+"/icon_48.png"
|
||||
self.icon_32 = self.asset_dir+"/icon_32.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue