fix: spotless (#4604)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-20 11:52:09 -06:00 committed by GitHub
parent ac5a1714e0
commit 5a0913a1d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View file

@ -52,7 +52,7 @@ open class MeshUtilApplication :
Application(),
Configuration.Provider {
@Inject lateinit var workerFactory: HiltWorkerFactory
private val applicationScope = CoroutineScope(Dispatchers.Default)
override fun onCreate() {
@ -64,9 +64,7 @@ open class MeshUtilApplication :
// Initialize DatabaseManager asynchronously with current device address so DAO consumers have an active DB
val entryPoint = EntryPointAccessors.fromApplication(this, AppEntryPoint::class.java)
applicationScope.launch {
entryPoint.databaseManager().init(entryPoint.meshPrefs().deviceAddress)
}
applicationScope.launch { entryPoint.databaseManager().init(entryPoint.meshPrefs().deviceAddress) }
}
override fun onTerminate() {

View file

@ -22,8 +22,8 @@ import dagger.hilt.android.EntryPointAccessors
/**
* A lightweight application class for Robolectric tests.
*
* It prevents heavy background initialization (WorkManager, DatabaseManager) by default
* to avoid resource leaks and flaky native SQLite issues on the JVM.
* It prevents heavy background initialization (WorkManager, DatabaseManager) by default to avoid resource leaks and
* flaky native SQLite issues on the JVM.
*/
class MeshTestApplication : MeshUtilApplication() {
@ -43,9 +43,7 @@ class MeshTestApplication : MeshUtilApplication() {
}
override val workManagerConfiguration: Configuration
get() = Configuration.Builder()
.setMinimumLoggingLevel(android.util.Log.DEBUG)
.build()
get() = Configuration.Builder().setMinimumLoggingLevel(android.util.Log.DEBUG).build()
companion object {
/** Set to true in a test @Before block if you need real DB/WorkManager init. */