kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
about to fix parcelables
rodzic
10ad07e136
commit
a3198d3931
|
@ -77,6 +77,7 @@
|
||||||
<activity
|
<activity
|
||||||
android:name="com.geeksville.mesh.MainActivity"
|
android:name="com.geeksville.mesh.MainActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
|
android:screenOrientation="portrait"
|
||||||
android:theme="@style/AppTheme.NoActionBar">
|
android:theme="@style/AppTheme.NoActionBar">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
|
@ -193,12 +193,10 @@ class MainActivity : AppCompatActivity(), Logging {
|
||||||
val m = IMeshService.Stub.asInterface(service)
|
val m = IMeshService.Stub.asInterface(service)
|
||||||
meshService = m
|
meshService = m
|
||||||
|
|
||||||
// FIXME - do actions for when we connect to the service
|
|
||||||
// FIXME - do actions for when we connect to the service
|
|
||||||
debug("did connect")
|
|
||||||
|
|
||||||
UIState.isConnected.value = m.isConnected
|
UIState.isConnected.value = m.isConnected
|
||||||
|
|
||||||
|
debug("connected to mesh service, isConnected=${UIState.isConnected.value}")
|
||||||
|
|
||||||
// make some placeholder nodeinfos
|
// make some placeholder nodeinfos
|
||||||
UIState.nodes.value =
|
UIState.nodes.value =
|
||||||
m.online.toList().map {
|
m.online.toList().map {
|
||||||
|
|
Ładowanie…
Reference in New Issue