diff options
author | Alexandra Gherghina <alexgherghina@google.com> | 2014-06-27 12:33:42 +0100 |
---|---|---|
committer | Alexandra Gherghina <alexgherghina@google.com> | 2014-07-17 19:05:57 +0000 |
commit | 7d748c0267b7d499309464ebae168be01e136b4c (patch) | |
tree | 9c00c859437be85213a59fd1afadc4774df6020f /src/com/android/settings/bluetooth | |
parent | d888b543b2c188e59ea537ba4e73bf9253fbfc93 (diff) | |
download | packages_apps_Settings-7d748c0267b7d499309464ebae168be01e136b4c.zip packages_apps_Settings-7d748c0267b7d499309464ebae168be01e136b4c.tar.gz packages_apps_Settings-7d748c0267b7d499309464ebae168be01e136b4c.tar.bz2 |
Handle choosing and adding accounts for a managed profile
The user id can now be passed through the app as a fragment argument.
Bug: 15466880
Change-Id: I0e2be20551b4ec8c9226640ac74ea74115156ccd
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r-- | src/com/android/settings/bluetooth/MessageAccessSettings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/bluetooth/MessageAccessSettings.java b/src/com/android/settings/bluetooth/MessageAccessSettings.java index bef59c8..913357c 100644 --- a/src/com/android/settings/bluetooth/MessageAccessSettings.java +++ b/src/com/android/settings/bluetooth/MessageAccessSettings.java @@ -54,8 +54,9 @@ public class MessageAccessSettings extends SettingsPreferenceFragment @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - mUserHandle = Utils.getProfileToDisplay(ActivityManagerNative.getDefault(), - getActivity().getActivityToken(), savedInstanceState); + + // TODO: Define behavior for managed profile. See: http://b/16287773 + mUserHandle = new UserHandle(UserHandle.myUserId()); addPreferencesFromResource(R.xml.bluetooth_message_access); } |