[Title] Modify if-condition when check packages in server. 33/10633/1
authoryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 8 Oct 2013 06:06:16 +0000 (15:06 +0900)
committeryongsung1.kim <yongsung1.kim@samsung.com>
Tue, 8 Oct 2013 06:06:16 +0000 (15:06 +0900)
[Issue] Redmine #10667

Change-Id: Icd8557ae7dd7c5dc1c1056c06a7f8a91a2f5957e

InstallManager_java/src/org/tizen/installmanager/ui/page/ViewController.java

index ccc11c0..038b9e6 100644 (file)
@@ -591,7 +591,7 @@ public class ViewController {
                PackageSet rmPkgs = getRemovablePackageList();
                PackageSet insPkgs = getInstallableOrUpdatableMetaPackages();
                
-               if (rmPkgs != null || insPkgs != null) {
+               if (!rmPkgs.isEmpty() || !insPkgs.isEmpty()) {
                        Log.log("existInstallableOrRemovablePackages() is true.");
                        return (getRemovablePackageList().size() > 0 || getInstallableOrUpdatableMetaPackages().size() > 0);                    
                } else {