Package: emulator-manager
-Version: 1.0.8
+Version: 1.0.9
OS: linux
Build-host-os: linux
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
int isLinux = System.getProperty("os.name").toLowerCase().indexOf("linux");
int isWindows = System.getProperty("os.name").toLowerCase().indexOf("linux");
String osVersion = System.getProperty("os.version");
- boolean isFileshare = !fileshare.equals("none");
- boolean isSDcard = !sdcard.equals("none");
+ boolean isFileshare = true;
+ if (fileshare == null) {
+ isFileshare = false;
+ }
+ boolean isSDcard = true;
+ if (sdcard == null) {
+ isSDcard = false;
+ }
cmd.add(fio.getBinPath() + File.separator + binary);
cmd.add("--skin-args");
cmd.add("width=" + width);
oldTarget.resolution = String.valueOf(re.getWidth()) + "x" + String.valueOf(re.getHeight());
oldTarget.dpi = property.getConfiguration().getDevice().getDisplay().getDensity().getValue();
oldTarget.SDCardPath = property.getConfiguration().getDevice().getStorage().getSDCard().getDiskImage();
- if (oldTarget.SDCardPath != null && !oldTarget.SDCardPath.equals("")) {
+ if (oldTarget.SDCardPath != null) {
oldTarget.isSDCardSupport = true;
} else if (oldTarget.SDCardPath == null) {
oldTarget.SDCardPath = "";
}
oldTarget.fileSharePath = property.getConfiguration().getUsability().getFileSharing().getPath();
- if (oldTarget.fileSharePath != null && !oldTarget.fileSharePath.equals("")) {
+ if (oldTarget.fileSharePath != null) {
oldTarget.isFileShareSupport = true;
} else if (oldTarget.fileSharePath == null) {
oldTarget.fileSharePath = "";
}
property.getConfiguration().getDevice().getStorage().getSDCard().setDiskImage(newTarget.SDCardPath);
} else {
- property.getConfiguration().getDevice().getStorage().getSDCard().setDiskImage("");
+ property.getConfiguration().getDevice().getStorage().getSDCard().setDiskImage(null);
}
} else if (newTarget.isSDCardSupport && !newTarget.SDCardPath.equals(oldTarget.SDCardPath)) {
if (!modifySDCard(newTarget)) {
}
if (newTarget.isFileShareSupport != oldTarget.isFileShareSupport) {
- if (newTarget.isFileShareSupport) {
+ if (newTarget.isFileShareSupport || !newTarget.fileSharePath.isEmpty()) {
property.getConfiguration().getUsability().getFileSharing().setPath(newTarget.fileSharePath);
} else {
- property.getConfiguration().getUsability().getFileSharing().setPath("");
+ property.getConfiguration().getUsability().getFileSharing().setPath(null);
}
} else if (newTarget.isFileShareSupport && !newTarget.fileSharePath.equals(oldTarget.fileSharePath)) {
property.getConfiguration().getUsability().getFileSharing().setPath(newTarget.fileSharePath);