Wrong method oops

captchafix
Florens Douwes 11 years ago
parent 518ef2bd22
commit d6b49e76b0
  1. 4
      Clover/app/src/main/java/org/floens/chan/core/watch/WatchNotifier.java

@ -56,13 +56,13 @@ public class WatchNotifier {
} }
public void update() { public void update() {
if (!WatchService.getActivityInForeground()) { if (!WatchService.getActivityInForeground() && ChanPreferences.getWatchBackgroundEnabled()) {
prepareNotification(); prepareNotification();
} }
} }
public void onForegroundChanged() { public void onForegroundChanged() {
if (WatchService.getActivityInForeground() && ChanPreferences.getWatchBackgroundEnabled()) { if (WatchService.getActivityInForeground()) {
nm.cancel(NOTIFICATION_ID); nm.cancel(NOTIFICATION_ID);
} else { } else {

Loading…
Cancel
Save