We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abe5f8 commit b0b15ebCopy full SHA for b0b15eb
app/release/weather.apk
61 Bytes
app/src/main/java/com/example/weather/Settings.java
@@ -103,6 +103,8 @@ public void loadData() {
103
units_text.setText("Metric °C");
104
} else if (unit.equals("imperial")) {
105
units_text.setText("Imperial °F");
106
+ } else {
107
+ units_text.setText("Metric °C");
108
}
109
110
app/src/main/java/com/example/weather/fetch.java
@@ -38,7 +38,7 @@ protected Void doInBackground(Void... voids) {
38
Log.d("target", "doInBackground: "+ location);
39
Log.d("target", "doInBackground: "+ units);
40
41
- if(units == null) {
+ if(units == "") {
42
units = "metric";
43
44
0 commit comments