summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-02-28 13:38:46 -0800
committerKenny Root <kroot@google.com>2011-03-01 09:37:23 -0800
commit77b967ee75a3566b2322fb767c8545aef8856841 (patch)
tree85652183f23eba78a71382ca93e0031293292e71 /src/com
parentde26a29a2f38956ae0f8dadfc4f3f6f847eb9691 (diff)
downloadpackages_apps_packageinstaller-77b967ee75a3566b2322fb767c8545aef8856841.zip
packages_apps_packageinstaller-77b967ee75a3566b2322fb767c8545aef8856841.tar.gz
packages_apps_packageinstaller-77b967ee75a3566b2322fb767c8545aef8856841.tar.bz2
Use new package deletion observer
Change-Id: Iabef1f9c6758e09c9e7f697da29cda7d532c625b
Diffstat (limited to 'src/com')
-rwxr-xr-xsrc/com/android/packageinstaller/UninstallAppProgress.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/packageinstaller/UninstallAppProgress.java b/src/com/android/packageinstaller/UninstallAppProgress.java
index ed3c6a4..fd094cf 100755
--- a/src/com/android/packageinstaller/UninstallAppProgress.java
+++ b/src/com/android/packageinstaller/UninstallAppProgress.java
@@ -20,13 +20,13 @@ import android.app.Activity;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.IPackageDeleteObserver;
+import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
-import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ProgressBar;
@@ -81,9 +81,9 @@ public class UninstallAppProgress extends Activity implements OnClickListener {
}
class PackageDeleteObserver extends IPackageDeleteObserver.Stub {
- public void packageDeleted(boolean succeeded) {
+ public void packageDeleted(String packageName, int returnCode) {
Message msg = mHandler.obtainMessage(UNINSTALL_COMPLETE);
- msg.arg1 = succeeded?SUCCEEDED:FAILED;
+ msg.arg1 = returnCode == PackageManager.DELETE_SUCCEEDED ? SUCCEEDED : FAILED;
mHandler.sendMessage(msg);
}
}