aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2012-12-10 16:39:38 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-12-10 16:39:39 -0800
commita73442969f02619a27805957464a9006d9fb6080 (patch)
tree0429b0e318e6b0e3da1ee4fabf39592d2593d9ff
parent4b2d3a5c5748f042f1f1ca1da05ac16b8f39f7ec (diff)
parent7518961a0b5376e83d74da461dfc333ad92cc3a1 (diff)
downloadsdk-a73442969f02619a27805957464a9006d9fb6080.zip
sdk-a73442969f02619a27805957464a9006d9fb6080.tar.gz
sdk-a73442969f02619a27805957464a9006d9fb6080.tar.bz2
Merge "AVD edit dialog: Fix equality comparison."
-rw-r--r--sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java
index b89841f..89aa8ce 100644
--- a/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java
+++ b/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/AvdCreationDialog.java
@@ -1177,9 +1177,11 @@ public class AvdCreationDialog extends GridDialog {
}
mKeyboard.setSelection(
- props.get(HardwareProperties.HW_KEYBOARD) == HardwareProperties.BOOLEAN_YES);
+ HardwareProperties.BOOLEAN_YES.equalsIgnoreCase(
+ props.get(HardwareProperties.HW_KEYBOARD)));
mSkin.setSelection(
- props.get(AvdManager.AVD_INI_SKIN_DYNAMIC) == HardwareProperties.BOOLEAN_YES);
+ HardwareProperties.BOOLEAN_YES.equalsIgnoreCase(
+ props.get(AvdManager.AVD_INI_SKIN_DYNAMIC)));
String cameraFront = props.get(AvdManager.AVD_INI_CAMERA_FRONT);
if (cameraFront != null) {