diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java index 0cda651181..14b0b50aa4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsNotifications.java @@ -39,6 +39,7 @@ import android.view.ViewGroup; import android.widget.Button; import android.widget.CheckBox; import android.widget.CompoundButton; +import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; @@ -87,6 +88,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared private SwitchCompat swNotifyPreviewAll; private SwitchCompat swNotifyPreviewOnly; private SwitchCompat swWearablePreview; + private ImageButton ibWearable; private SwitchCompat swMessagingStyle; private SwitchCompat swBiometricsNotify; private SwitchCompat swAlertOnce; @@ -155,6 +157,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared swNotifyPreviewAll = view.findViewById(R.id.swNotifyPreviewAll); swNotifyPreviewOnly = view.findViewById(R.id.swNotifyPreviewOnly); swWearablePreview = view.findViewById(R.id.swWearablePreview); + ibWearable = view.findViewById(R.id.ibWearable); swMessagingStyle = view.findViewById(R.id.swMessagingStyle); swBiometricsNotify = view.findViewById(R.id.swBiometricsNotify); swAlertOnce = view.findViewById(R.id.swAlertOnce); @@ -403,6 +406,13 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared } }); + ibWearable.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Helper.viewFAQ(v.getContext(), 126); + } + }); + swMessagingStyle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { diff --git a/app/src/main/res/drawable/twotone_watch_24.xml b/app/src/main/res/drawable/twotone_watch_24.xml new file mode 100644 index 0000000000..0e61adde47 --- /dev/null +++ b/app/src/main/res/drawable/twotone_watch_24.xml @@ -0,0 +1,15 @@ + + + + diff --git a/app/src/main/res/layout/fragment_options_notifications.xml b/app/src/main/res/layout/fragment_options_notifications.xml index 10383a6e1b..47bf6c909f 100644 --- a/app/src/main/res/layout/fragment_options_notifications.xml +++ b/app/src/main/res/layout/fragment_options_notifications.xml @@ -534,6 +534,16 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/swWearablePreview" /> + +