Background data persist on app pause on Android

This commit is contained in:
Mark Qvist 2026-04-19 01:31:04 +02:00
commit cd323c9ca8
2 changed files with 3 additions and 5 deletions

View file

@ -1063,7 +1063,7 @@ class SidebandApp(MDApp):
self.sideband.setstate("app.running", True)
self.sideband.setstate("app.foreground", False)
self.app_state = SidebandApp.PAUSED
self.sideband.should_persist_data()
self.sideband.should_persist_data(background=True)
RNS.log("App paused", RNS.LOG_DEBUG)
return True

View file

@ -580,10 +580,8 @@ class SidebandCore():
total += entry.stat(follow_symlinks=False).st_size
return total
def should_persist_data(self):
if self.reticulum != None:
self.reticulum._should_persist_data()
def should_persist_data(self, background=False):
if self.reticulum != None: self.reticulum._should_persist_data(background=background)
self.save_configuration()
def __load_telemetry_collector_excluded(self):