kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
analytics tweaks
rodzic
b1238156cf
commit
29d87bffb3
|
@ -524,6 +524,8 @@ class MeshService : Service(), Logging {
|
|||
|
||||
else -> TODO()
|
||||
}
|
||||
|
||||
GeeksvilleApplication.analytics.track("data_receive")
|
||||
}
|
||||
|
||||
/// Update our DB of users based on someone sending out a User subpacket
|
||||
|
@ -820,6 +822,8 @@ class MeshService : Service(), Logging {
|
|||
sendToRadio(ToRadio.newBuilder().apply {
|
||||
this.packet = packet
|
||||
})
|
||||
|
||||
GeeksvilleApplication.analytics.track("data_send")
|
||||
}
|
||||
|
||||
override fun getRadioConfig(): ByteArray = toRemoteExceptions {
|
||||
|
|
|
@ -139,11 +139,6 @@ private fun AppContent(openDrawer: () -> Unit) {
|
|||
}
|
||||
)
|
||||
|
||||
// VerticalScroller breaks flexible layouts - because verticalscrollers have 'infinite' height
|
||||
// VerticalScroller(modifier = LayoutFlexible(1f)) {
|
||||
//if (screen != Screen.settings)
|
||||
// ScanState.stopScan() // Nasty hack to teardown the bt scanner
|
||||
|
||||
when (screen) {
|
||||
Screen.messages -> MessagesContent()
|
||||
Screen.settings -> SettingsContent()
|
||||
|
@ -151,7 +146,6 @@ private fun AppContent(openDrawer: () -> Unit) {
|
|||
Screen.channel -> ChannelContent()
|
||||
else -> TODO()
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,6 @@ import androidx.ui.material.ProvideEmphasis
|
|||
import androidx.ui.text.TextStyle
|
||||
import androidx.ui.tooling.preview.Preview
|
||||
import androidx.ui.unit.dp
|
||||
import com.geeksville.android.GeeksvilleApplication
|
||||
import com.geeksville.mesh.model.MessagesState
|
||||
import com.geeksville.mesh.model.MessagesState.messages
|
||||
import com.geeksville.mesh.model.NodeDB
|
||||
|
@ -106,7 +105,6 @@ fun MessagesContent() {
|
|||
val str = message.value
|
||||
MessagesState.sendMessage(str)
|
||||
message.value = "" // blow away the string the user just entered
|
||||
GeeksvilleApplication.analytics.track("send_text") // track how many times users share channels
|
||||
},
|
||||
hintText = "Type your message here..."
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue