kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
don't leak a reference to the service
rodzic
94dbb237e8
commit
f7f201adbc
|
@ -241,6 +241,8 @@ class MainActivity : AppCompatActivity(), Logging,
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
unregisterMeshReceiver()
|
unregisterMeshReceiver()
|
||||||
|
UIState.meshService =
|
||||||
|
null // When our activity goes away make sure we don't keep a ptr around to the service
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue