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

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

Merge "Don't override targetVers with minCode" am: 3b0eba44

am: 234a906e

Change-Id: Ie0eaed7be80819484a41bca5a0bd396138f5870f
parents 0e092b7e 234a906e
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -2199,10 +2199,10 @@ public class PackageParser {
                            com.android.internal.R.styleable.AndroidManifestUsesSdk_minSdkVersion);
                            com.android.internal.R.styleable.AndroidManifestUsesSdk_minSdkVersion);
                    if (val != null) {
                    if (val != null) {
                        if (val.type == TypedValue.TYPE_STRING && val.string != null) {
                        if (val.type == TypedValue.TYPE_STRING && val.string != null) {
                            targetCode = minCode = val.string.toString();
                            minCode = val.string.toString();
                        } else {
                        } else {
                            // If it's not a string, it's an integer.
                            // 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.
                            // If it's not a string, it's an integer.
                            targetVers = val.data;
                            targetVers = val.data;
                        }
                        }
                    } else {
                        targetVers = minVers;
                        targetCode = minCode;
                    }
                    }


                    sa.recycle();
                    sa.recycle();