diff options
author | Kenny Root <kroot@google.com> | 2011-02-28 13:27:19 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-03-01 09:27:57 -0800 |
commit | c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb (patch) | |
tree | a17b98261c9fa066d13363442585f0a227a29ce7 /cmds/pm/src/com/android | |
parent | 051d4430715ea257f0afd124b919a14ced6385b8 (diff) | |
download | frameworks_base-c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb.zip frameworks_base-c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb.tar.gz frameworks_base-c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb.tar.bz2 |
Switch to returnCode for IPackageDeleteObserver
Before the IPackageDeleteObserver only knew whether the deletion
succeeded or failed, but not the reason why.
Bug: 2520191
Change-Id: I1f0d7c04f06c539660b6e17e7e133defb0f61b5b
Diffstat (limited to 'cmds/pm/src/com/android')
-rw-r--r-- | cmds/pm/src/com/android/commands/pm/Pm.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/pm/src/com/android/commands/pm/Pm.java b/cmds/pm/src/com/android/commands/pm/Pm.java index cc6e739..d058e38 100644 --- a/cmds/pm/src/com/android/commands/pm/Pm.java +++ b/cmds/pm/src/com/android/commands/pm/Pm.java @@ -767,10 +767,10 @@ public final class Pm { boolean finished; boolean result; - public void packageDeleted(boolean succeeded) { + public void packageDeleted(String packageName, int returnCode) { synchronized (this) { finished = true; - result = succeeded; + result = returnCode == PackageManager.DELETE_SUCCEEDED; notifyAll(); } } |