Skip to content

Commit

Permalink
android config fix, cloudly icon logic change
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredbiehler committed May 6, 2014
1 parent 7f721ad commit 0f74993
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is my attempt at learning about the Pebble SDK by adjusting an app for my o

I make no claims about the icons nor the design of this app, all credit for that goes to those listed below.

Give it a shot and let me know what you think: [download pbw here](https://github.com/jaredbiehler/weather-my-way/releases/download/1.0.2/weather-my-way-v1.0.2.pbw)
Give it a shot and let me know what you think: [download pbw here](https://github.com/jaredbiehler/weather-my-way/releases/download/1.0.3/weather-my-way-v1.0.3.pbw)

![pebble screen1](https://raw.githubusercontent.com/jaredbiehler/weather-my-way/master/screenshots/pebble-screenshot1.png) 
![pebble screen2](https://raw.githubusercontent.com/jaredbiehler/weather-my-way/master/screenshots/pebble-screenshot2.png) 
Expand Down
5 changes: 5 additions & 0 deletions src/js/pebble-js-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ Pebble.addEventListener("webviewclosed", function(e) {
try {
var settings = JSON.parse(decodeURIComponent(e.response));

// Android 'cancel' sends a blank object
if (Object.keys(settings).length <= 0) {
return;
}

var config = {};
config.weatherService = settings.service === SERVICE_YAHOO_WEATHER ? SERVICE_YAHOO_WEATHER : SERVICE_OPEN_WEATHER;
config.weatherScale = settings.scale === 'F' ? 'F' : 'C';
Expand Down

0 comments on commit 0f74993

Please sign in to comment.