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:15:38 +0000 (20:15 -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 5ab615e8ed92b890d87e0b79a64f2f694bc0ce7d..5648d1dfd5f78811c0b9981e3f5437e258133fc1 100644 (file)
@@ -268,7 +268,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++;