Added badge info button

pull/194/head
M66B 4 years ago
parent fc7b243746
commit f572954419

@ -77,6 +77,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
private Button btnSound; private Button btnSound;
private SwitchCompat swBadge; private SwitchCompat swBadge;
private ImageButton ibBadge;
private SwitchCompat swUnseenIgnored; private SwitchCompat swUnseenIgnored;
private SwitchCompat swNotifyBackgroundOnly; private SwitchCompat swNotifyBackgroundOnly;
private SwitchCompat swNotifyKnownOnly; private SwitchCompat swNotifyKnownOnly;
@ -147,6 +148,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
btnSound = view.findViewById(R.id.btnSound); btnSound = view.findViewById(R.id.btnSound);
swBadge = view.findViewById(R.id.swBadge); swBadge = view.findViewById(R.id.swBadge);
ibBadge = view.findViewById(R.id.ibBadge);
swUnseenIgnored = view.findViewById(R.id.swUnseenIgnored); swUnseenIgnored = view.findViewById(R.id.swUnseenIgnored);
swNotifyBackgroundOnly = view.findViewById(R.id.swNotifyBackgroundOnly); swNotifyBackgroundOnly = view.findViewById(R.id.swNotifyBackgroundOnly);
swNotifyKnownOnly = view.findViewById(R.id.swNotifyKnownOnly); swNotifyKnownOnly = view.findViewById(R.id.swNotifyKnownOnly);
@ -335,6 +337,13 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
} }
}); });
ibBadge.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 106);
}
});
swUnseenIgnored.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { swUnseenIgnored.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

@ -363,6 +363,16 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swBadge" /> app:layout_constraintTop_toBottomOf="@id/swBadge" />
<ImageButton
android:id="@+id/ibBadge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBadgeHint"
app:srcCompat="@drawable/twotone_info_24" />
<androidx.appcompat.widget.SwitchCompat <androidx.appcompat.widget.SwitchCompat
android:id="@+id/swUnseenIgnored" android:id="@+id/swUnseenIgnored"
android:layout_width="0dp" android:layout_width="0dp"
@ -371,7 +381,7 @@
android:text="@string/title_advanced_unseen_ignored" android:text="@string/title_advanced_unseen_ignored"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvBadgeHint" app:layout_constraintTop_toBottomOf="@id/ibBadge"
app:switchPadding="12dp" /> app:switchPadding="12dp" />
<androidx.appcompat.widget.SwitchCompat <androidx.appcompat.widget.SwitchCompat

Loading…
Cancel
Save