mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +01:00
AndroidGCS Controller: Make sure to remove the callback on manual control
settings before updating it.
This commit is contained in:
parent
75ce520503
commit
335ccc54a3
@ -78,11 +78,11 @@ public class Controller extends ObjectManagerActivity {
|
||||
public void update(Observable observable, Object data) {
|
||||
// Once we have updated settings we can active the GCS receiver mode
|
||||
Log.d(TAG,"Got update from settings");
|
||||
activateGcsReceiver();
|
||||
UAVDataObject manualControlSettings = (UAVDataObject) objMngr.getObject("ManualControlSettings");
|
||||
if(manualControlSettings != null) {
|
||||
manualControlSettings.removeUpdatedObserver(this);
|
||||
}
|
||||
activateGcsReceiver();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user