Update app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java
Co-authored-by: litetex <40789489+litetex@users.noreply.github.com>
This commit is contained in:
parent
64a7978c7f
commit
4f7cdcce55
1 changed files with 4 additions and 5 deletions
|
@ -400,17 +400,16 @@ public class ChannelFragment extends BaseListInfoFragment<ChannelInfo>
|
|||
if (menuNotifyButton == null) {
|
||||
return;
|
||||
}
|
||||
if (subscription == null) {
|
||||
menuNotifyButton.setVisible(false);
|
||||
} else {
|
||||
if (subscription != null) {
|
||||
menuNotifyButton.setEnabled(
|
||||
NotificationHelper.isNewStreamsNotificationsEnabled(requireContext())
|
||||
);
|
||||
menuNotifyButton.setChecked(
|
||||
subscription.getNotificationMode() != NotificationMode.DISABLED
|
||||
subscription.getNotificationMode() == NotificationMode.ENABLED
|
||||
);
|
||||
menuNotifyButton.setVisible(true);
|
||||
}
|
||||
|
||||
menuNotifyButton.setVisible(subscription != null);
|
||||
}
|
||||
|
||||
private void setNotify(final boolean isEnabled) {
|
||||
|
|
Loading…
Reference in a new issue