I'm not crazy about methods returning things from global scope, but the
Drone instance in DroidPlannerApp does seem to be a singleton (being an
instance variable of DroidPlannerApp), and it was a cleaner way to get
access to the Drone instance from the preferences than anything else I
could think of. I could certainly think of another way to get access to it
from the preferences if you prefer.


On Sat, Apr 5, 2014 at 5:05 PM, Arthur Benemann <notifications@github.com>wrote:

> In DroidPlanner/src/org/droidplanner/DroidPlannerApp.java:
>
> >  		drone.events.notifyDroneEvent(DroneEventsType.DISCONNECTED);
> >  	}
> > +	
> > +	public Drone getDrone() {
> > +		return drone;
> > +	}
> > +	
> > +	public boolean isDroneConnected() {
>
> I'm just a little worried about this method, but I don't have an immediate
> solution.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/DroidPlanner/droidplanner/pull/718/files#r11323486>
> .
>