Skip to content

Commit 212a4f5

Browse files
committed
get rid of EKEventStoreChangedNotification observation until we figure out why it
can get called and repeated so often
1 parent 0668063 commit 212a4f5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/motion/RMXEventManager.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RMXEventManager
6464

6565
attr_accessor :sources, :selectedCalendars, :calendar, :store
6666

67-
attr_reader :refreshSignal, :eventsSignal, :storeChangedSignal
67+
attr_reader :refreshSignal, :eventsSignal
6868

6969
# override
7070
def firstDate
@@ -92,12 +92,9 @@ def initialize
9292
@sources = []
9393
@selectedCalendars = NSMutableSet.new
9494

95-
@storeChangedSignal = NSNotificationCenter.defaultCenter.rac_addObserverForName(EKEventStoreChangedNotification, object:@store).takeUntil(rac_willDeallocSignal)
96-
9795
@refreshSignal = RACSignal.merge([
9896
RMX.rac_appDidFinishLaunchingNotification,
99-
RMX.rac_appDidBecomeActiveFromBackground,
100-
@storeChangedSignal
97+
RMX.rac_appDidBecomeActiveFromBackground
10198
])
10299
.bufferWithTime(0.5, onScheduler:RACScheduler.mainThreadScheduler)
103100
.takeUntil(rac_willDeallocSignal)

0 commit comments

Comments
 (0)