From ac17085c50c82597e77ceda8c40ca21957ea413e Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Mon, 2 Mar 2015 11:25:19 -0800 Subject: Settings: don't add inline trigger links to profiles in creation mode Change-Id: I24c12df7478c18858c6b612dc4ee274792dd5e24 Signed-off-by: Roman Birg --- .../settings/profiles/SetupActionsFragment.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/com/android/settings/profiles') 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 -- cgit v1.1