From 77b967ee75a3566b2322fb767c8545aef8856841 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 28 Feb 2011 13:38:46 -0800 Subject: Use new package deletion observer Change-Id: Iabef1f9c6758e09c9e7f697da29cda7d532c625b --- src/com/android/packageinstaller/UninstallAppProgress.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/com') 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); } } -- cgit v1.1