Loading services/core/java/com/android/server/pm/InstallRequest.java +0 −14 Original line number Diff line number Diff line Loading @@ -644,20 +644,6 @@ final class InstallRequest { return mScanResult.mPkgSetting; } @Nullable public PackageSetting getRealPackageSetting() { // TODO: Fix this to have 1 mutable PackageSetting for scan/install. If the previous // setting needs to be passed to have a comparison, hide it behind an immutable // interface. There's no good reason to have 3 different ways to access the real // PackageSetting object, only one of which is actually correct. PackageSetting realPkgSetting = isExistingSettingCopied() ? getScanRequestPackageSetting() : getScannedPackageSetting(); if (realPkgSetting == null) { realPkgSetting = getScannedPackageSetting(); } return realPkgSetting; } public boolean isExistingSettingCopied() { assertScanResultExists(); return mScanResult.mExistingSettingCopied; Loading Loading
services/core/java/com/android/server/pm/InstallRequest.java +0 −14 Original line number Diff line number Diff line Loading @@ -644,20 +644,6 @@ final class InstallRequest { return mScanResult.mPkgSetting; } @Nullable public PackageSetting getRealPackageSetting() { // TODO: Fix this to have 1 mutable PackageSetting for scan/install. If the previous // setting needs to be passed to have a comparison, hide it behind an immutable // interface. There's no good reason to have 3 different ways to access the real // PackageSetting object, only one of which is actually correct. PackageSetting realPkgSetting = isExistingSettingCopied() ? getScanRequestPackageSetting() : getScannedPackageSetting(); if (realPkgSetting == null) { realPkgSetting = getScannedPackageSetting(); } return realPkgSetting; } public boolean isExistingSettingCopied() { assertScanResultExists(); return mScanResult.mExistingSettingCopied; Loading