diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-05-11 18:57:49 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-05-12 16:10:42 -0700 |
commit | c0d65ae569b5f6188383a0d0ec253b6131203f30 (patch) | |
tree | 0e6d1723ca9225fa069acd8920471ad7597ed8a2 /src | |
parent | 3ca79bd1de702aac1527bf0eaec3e9ea035d5103 (diff) | |
download | packages_apps_packageinstaller-c0d65ae569b5f6188383a0d0ec253b6131203f30.zip packages_apps_packageinstaller-c0d65ae569b5f6188383a0d0ec253b6131203f30.tar.gz packages_apps_packageinstaller-c0d65ae569b5f6188383a0d0ec253b6131203f30.tar.bz2 |
Update to match new install API.
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/packageinstaller/InstallAppProgress.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/packageinstaller/InstallAppProgress.java b/src/com/android/packageinstaller/InstallAppProgress.java index da1044c..5f71a85 100755 --- a/src/com/android/packageinstaller/InstallAppProgress.java +++ b/src/com/android/packageinstaller/InstallAppProgress.java @@ -101,14 +101,14 @@ public class InstallAppProgress extends Activity { PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName, PackageManager.GET_UNINSTALLED_PACKAGES); if(pi != null) { - installFlags |= PackageManager.REPLACE_EXISTING_PACKAGE; + installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; } } catch (NameNotFoundException e) { } - if((installFlags & PackageManager.REPLACE_EXISTING_PACKAGE )!= 0) { + if((installFlags & PackageManager.INSTALL_REPLACE_EXISTING )!= 0) { Log.w(TAG, "Replacing package:"+mAppInfo.packageName); } PackageInstallObserver observer = new PackageInstallObserver(); - pm.installPackage(mPackageURI, observer, installFlags); + pm.installPackage(mPackageURI, observer, installFlags, null); } } |