diff options
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/SetupActionsFragment.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java index d33b9ba..1d5e1f9 100644 --- a/src/com/android/settings/profiles/SetupActionsFragment.java +++ b/src/com/android/settings/profiles/SetupActionsFragment.java @@ -152,14 +152,16 @@ public class SetupActionsFragment extends SettingsPreferenceFragment mItems.add(new Header(getString(R.string.profile_name_title))); mItems.add(new ProfileNameItem(mProfile)); - // triggers - mItems.add(new Header(getString(R.string.profile_triggers_header))); - mItems.add(generateTriggerItem(TriggerItem.WIFI)); - if (DeviceUtils.deviceSupportsBluetooth()) { - mItems.add(generateTriggerItem(TriggerItem.BLUETOOTH)); - } - if (DeviceUtils.deviceSupportsNfc(getActivity())) { - mItems.add(generateTriggerItem(TriggerItem.NFC)); + if (!mNewProfileMode) { + // triggers + mItems.add(new Header(getString(R.string.profile_triggers_header))); + mItems.add(generateTriggerItem(TriggerItem.WIFI)); + if (DeviceUtils.deviceSupportsBluetooth()) { + mItems.add(generateTriggerItem(TriggerItem.BLUETOOTH)); + } + if (DeviceUtils.deviceSupportsNfc(getActivity())) { + mItems.add(generateTriggerItem(TriggerItem.NFC)); + } } // connection overrides |