altosuilib: Mark 'Configure AltosUI' window with maps key status
authorKeith Packard <keithp@keithp.com>
Wed, 25 Jun 2014 03:15:38 +0000 (20:15 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 25 Jun 2014 03:16:21 +0000 (20:16 -0700)
This lets us check a build to make sure it has a maps key

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIConfigure.java

index 920ed8e287a10c126c930cc3f41a2ac3376e1e9e..0e82cacb3162b6d8cb8fb1ddfc3454c10938b175 100644 (file)
@@ -243,7 +243,9 @@ public class AltosUIConfigure
                         constraints(0, 3));
                row++;
 
-               pane.add(new JLabel (String.format("AltOS version %s", AltosUIVersion.version)),
+               pane.add(new JLabel (String.format("AltOS version %s (%smaps key)",
+                                                  AltosUIVersion.version,
+                                                  AltosUIVersion.has_google_maps_api_key() ? "" : "no ")),
                         constraints(0, 3));
                row++;