diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-10-02 18:57:55 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-10-02 18:57:55 -0700 |
commit | be32d4b408a2fd0ec25bdd4f0e67cba2f23a4edb (patch) | |
tree | d14dc877e6b95cad60a3d73af113db8dd22d982f /src/com | |
parent | 6258a0e22ed82f8fcc80e50ffda058ebcaf177e1 (diff) | |
download | packages_apps_Settings-be32d4b408a2fd0ec25bdd4f0e67cba2f23a4edb.zip packages_apps_Settings-be32d4b408a2fd0ec25bdd4f0e67cba2f23a4edb.tar.gz packages_apps_Settings-be32d4b408a2fd0ec25bdd4f0e67cba2f23a4edb.tar.bz2 |
Follow API changes in framework.
Change-Id: I6c1f5c9ec342f69ceae3dddaa0cfab4e0a742372
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/applications/InstalledAppDetails.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java index 7588c1a..c5b3f8c 100644 --- a/src/com/android/settings/applications/InstalledAppDetails.java +++ b/src/com/android/settings/applications/InstalledAppDetails.java @@ -605,7 +605,7 @@ public class InstalledAppDetails extends Fragment Log.i(TAG, "Have " + prefActList.size() + " number of activities in preferred list"); boolean hasUsbDefaults = false; try { - hasUsbDefaults = mUsbManager.hasDefaults(packageName); + hasUsbDefaults = mUsbManager.hasDefaults(packageName, UserHandle.myUserId()); } catch (RemoteException e) { Log.e(TAG, "mUsbManager.hasDefaults", e); } @@ -1218,7 +1218,7 @@ public class InstalledAppDetails extends Fragment } else if(v == mActivitiesButton) { mPm.clearPackagePreferredActivities(packageName); try { - mUsbManager.clearDefaults(packageName); + mUsbManager.clearDefaults(packageName, UserHandle.myUserId()); } catch (RemoteException e) { Log.e(TAG, "mUsbManager.clearDefaults", e); } |