summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/pm
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-12-01 14:31:55 -0800
committerDianne Hackborn <hackbod@google.com>2009-12-01 14:31:55 -0800
commita7ca0e5e320bbb643f8bc9feb4717dbc5e78e0b9 (patch)
treebfa1dc971e804372e873ac65c5897424eaa2998d /core/java/android/content/pm
parent0bd1eeaf90d854c487feb8ee35c5c74af28ebc74 (diff)
downloadframeworks_base-a7ca0e5e320bbb643f8bc9feb4717dbc5e78e0b9.zip
frameworks_base-a7ca0e5e320bbb643f8bc9feb4717dbc5e78e0b9.tar.gz
frameworks_base-a7ca0e5e320bbb643f8bc9feb4717dbc5e78e0b9.tar.bz2
Fix issue #2296457: PackageManager.addPackageToPreferred needs to a no-op
Change-Id: I0d8f75938226e1bb49cf7b1154445631b0bb0bc9
Diffstat (limited to 'core/java/android/content/pm')
-rw-r--r--core/java/android/content/pm/PackageManager.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index e2030be..03d2a6d 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -1656,21 +1656,19 @@ public abstract class PackageManager {
IPackageStatsObserver observer);
/**
- * Add a new package to the list of preferred packages. This new package
- * will be added to the front of the list (removed from its current location
- * if already listed), meaning it will now be preferred over all other
- * packages when resolving conflicts.
- *
- * @param packageName The package name of the new package to make preferred.
+ * @deprecated This function no longer does anything; it was an old
+ * approach to managing preferred activities, which has been superceeded
+ * (and conflicts with) the modern activity-based preferences.
*/
+ @Deprecated
public abstract void addPackageToPreferred(String packageName);
/**
- * Remove a package from the list of preferred packages. If it was on
- * the list, it will no longer be preferred over other packages.
- *
- * @param packageName The package name to remove.
+ * @deprecated This function no longer does anything; it was an old
+ * approach to managing preferred activities, which has been superceeded
+ * (and conflicts with) the modern activity-based preferences.
*/
+ @Deprecated
public abstract void removePackageFromPreferred(String packageName);
/**