Added badge info button

This commit is contained in:
M66B
2021-02-26 15:00:26 +01:00
parent fc7b243746
commit f572954419
2 changed files with 20 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
private Button btnSound;
private SwitchCompat swBadge;
private ImageButton ibBadge;
private SwitchCompat swUnseenIgnored;
private SwitchCompat swNotifyBackgroundOnly;
private SwitchCompat swNotifyKnownOnly;
@@ -147,6 +148,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
btnSound = view.findViewById(R.id.btnSound);
swBadge = view.findViewById(R.id.swBadge);
ibBadge = view.findViewById(R.id.ibBadge);
swUnseenIgnored = view.findViewById(R.id.swUnseenIgnored);
swNotifyBackgroundOnly = view.findViewById(R.id.swNotifyBackgroundOnly);
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() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {