Skip to content
This repository
Browse code

Fix some more string comparison bugs

  • Loading branch information...
commit 8e4bee08a8b2b6bf1aef65f3d8898508abbcc177 1 parent 7916225
Matthew Jones authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 src/com/matburt/mobileorg/SettingsActivity.java
6 src/com/matburt/mobileorg/SettingsActivity.java
@@ -63,7 +63,7 @@ public void initializeSettings() {
63 63 } while (result.moveToNext());
64 64 for (int idx = 0; idx < this.settingsList.length; idx++) {
65 65 if (!this.settings.containsKey(this.settingsList[idx])) {
66   - if (this.settingsList[idx] == "storage") {
  66 + if (this.settingsList[idx].equals("storage")) {
67 67 this.settings.put("storage", "internal");
68 68 }
69 69 else {
@@ -95,10 +95,10 @@ public void populateDisplay() {
95 95 this.webUrl.setText(this.settings.get("webUrl"));
96 96 this.webUser.setText(this.settings.get("webUser"));
97 97 this.webPass.setText(this.settings.get("webPass"));
98   - if (this.settings.get("storage") == "internal") {
  98 + if (this.settings.get("storage").equals("internal")) {
99 99 this.storegrp.check(this.internal.getId());
100 100 }
101   - else if (this.settings.get("storage") == "sdcard") {
  101 + else if (this.settings.get("storage").equals("sdcard")) {
102 102 this.storegrp.check(this.sdcard.getId());
103 103 }
104 104 }

0 comments on commit 8e4bee0

Please sign in to comment.
Something went wrong with that request. Please try again.