Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 234a906e authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Don't override targetVers with minCode"

am: 3b0eba44

Change-Id: Ied3eb76b2b996500c540965d970fc9cc05fccbd9
parents df00ad1a 3b0eba44
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2199,10 +2199,10 @@ public class PackageParser {
                            com.android.internal.R.styleable.AndroidManifestUsesSdk_minSdkVersion);
                    if (val != null) {
                        if (val.type == TypedValue.TYPE_STRING && val.string != null) {
                            targetCode = minCode = val.string.toString();
                            minCode = val.string.toString();
                        } else {
                            // If it's not a string, it's an integer.
                            targetVers = minVers = val.data;
                            minVers = val.data;
                        }
                    }

@@ -2218,6 +2218,9 @@ public class PackageParser {
                            // If it's not a string, it's an integer.
                            targetVers = val.data;
                        }
                    } else {
                        targetVers = minVers;
                        targetCode = minCode;
                    }

                    sa.recycle();