fix: move card favourite star to bottom-right so it no longer overlaps the overflow button (v0.3.3.4)
build / Assemble debug APK (push) Failing after 9s
build / Assemble debug APK (push) Failing after 9s
This commit is contained in:
1 parent
5b82d2a9fe
commit
089926377c
44 files changed
+5490
-140
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package org.incido.compose
|
||||
|
||||
import android.app.Application
|
||||
import org.incido.compose.data.security.SecurityManager
|
||||
import org.incido.compose.di.AppContainer
|
||||
|
||||
/**
|
||||
@@ -9,13 +10,25 @@ import org.incido.compose.di.AppContainer
|
||||
*
|
||||
* ViewModels reach the container via `(application as IncidoApplication).container`
|
||||
* (see `NoteListViewModel.Factory` and `NoteEditorViewModel.factory`).
|
||||
*
|
||||
* v0.3.2.0 — initialises the [SecurityManager] lock state during
|
||||
* `onCreate` so the first composition of the root Compose tree
|
||||
* already knows whether to render `PinEntryScreen` or jump straight
|
||||
* into the regular UI.
|
||||
*/
|
||||
class IncidoApplication : Application() {
|
||||
lateinit var container: AppContainer
|
||||
private set
|
||||
|
||||
val securityManager: SecurityManager
|
||||
get() = container.securityManager
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
container = AppContainer(this)
|
||||
// Decide whether to start locked based on the persisted
|
||||
// security preferences. Safe here — no UI thread contention
|
||||
// because we're on the main thread pre-Activity.
|
||||
container.securityManager.start()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user