telegps: Don't re-add frequency menu when already present.
authorKeith Packard <keithp@keithp.com>
Thu, 12 Jun 2014 21:32:15 +0000 (14:32 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 12 Jun 2014 21:32:15 +0000 (14:32 -0700)
commit7d77d83685cbfce5323767bbfae3bd18be175ffc
treed8217823f9f4b3f10a3a0eccbc935841ef363341
parent8044eb8e23366e91c741060939baff5137f841c7
telegps: Don't re-add frequency menu when already present.

If the receiver disappears, we'll stop tracking, but won't pull the
frequency menu down. Doing that would take a bit of work, and it
doesn't seem worth the effort. As a kludge-around, avoid re-creating
the frequency menu if it's already displayed when we connect to
another device.

Signed-off-by: Keith Packard <keithp@keithp.com>
telegps/TeleGPS.java