mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
remove old compose goo no longer needed with newer versions
This commit is contained in:
parent
80597bf48a
commit
bedcdb9cd1
7 changed files with 41 additions and 17 deletions
19
app/src/main/java/com/geeksville/mesh/ui/Analytics.kt
Normal file
19
app/src/main/java/com/geeksville/mesh/ui/Analytics.kt
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package com.geeksville.mesh.ui
|
||||
|
||||
import androidx.compose.Composable
|
||||
import androidx.compose.onCommit
|
||||
import com.geeksville.android.GeeksvilleApplication
|
||||
|
||||
/**
|
||||
* Track compose screen visibility
|
||||
*/
|
||||
@Composable
|
||||
fun analyticsScreen(name: String) {
|
||||
onCommit(AppStatus.currentScreen) {
|
||||
GeeksvilleApplication.analytics.sendScreenView(name)
|
||||
|
||||
onDispose {
|
||||
GeeksvilleApplication.analytics.endScreenView()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue