Closed Katawann closed 3 years ago
https://github.com/mavlink/MAVSDK-Java/blob/610ce377a3c03f5e0ead4d9cb1f36f9d526fff3c/examples/android-client/app/src/main/java/io/mavsdk/androidclient/MapsActivity.java#L112
Should we not clear the disposables with disposables.clear() after we dispose elements in onPause() ? As we add them again with onResume()
disposables.clear()
onPause()
onResume()
Good point! Would you mind opening a PR for that? :blush:
done !
https://github.com/mavlink/MAVSDK-Java/blob/610ce377a3c03f5e0ead4d9cb1f36f9d526fff3c/examples/android-client/app/src/main/java/io/mavsdk/androidclient/MapsActivity.java#L112
Should we not clear the disposables with
disposables.clear()
after we dispose elements inonPause()
? As we add them again withonResume()