Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -59,7 +59,9 @@ import SwiftEventBus | ... | @@ -59,7 +59,9 @@ import SwiftEventBus |
59 | let couponEvent = swiftApi.CouponEventModel() | 59 | let couponEvent = swiftApi.CouponEventModel() |
60 | SwiftEventBus.post("coupon_retrieved", sender: couponEvent) | 60 | SwiftEventBus.post("coupon_retrieved", sender: couponEvent) |
61 | 61 | ||
62 | - } | 62 | + } else if (eventArray[1] == "couponShared") { |
63 | + | ||
64 | + } | ||
63 | // else if (eventArray[2] == "serviceDisabled") { | 65 | // else if (eventArray[2] == "serviceDisabled") { |
64 | // let pacingService = swiftApi.WarplyPacingEventModel() | 66 | // let pacingService = swiftApi.WarplyPacingEventModel() |
65 | // pacingService._isEnabled = false | 67 | // pacingService._isEnabled = false |
... | @@ -71,12 +73,12 @@ import SwiftEventBus | ... | @@ -71,12 +73,12 @@ import SwiftEventBus |
71 | // SwiftEventBus.post("pacing", sender: pacingService) | 73 | // SwiftEventBus.post("pacing", sender: pacingService) |
72 | 74 | ||
73 | // } | 75 | // } |
74 | - else if (eventArray[2] == "shortcutEnabled") { | 76 | + else if (eventArray[1] == "steps" && eventArray[2] == "shortcutEnabled") { |
75 | let pacingEvent = swiftApi.WarplyPacingEventModel() | 77 | let pacingEvent = swiftApi.WarplyPacingEventModel() |
76 | pacingEvent._isVisible = true | 78 | pacingEvent._isVisible = true |
77 | SwiftEventBus.post("pacing", sender: pacingEvent) | 79 | SwiftEventBus.post("pacing", sender: pacingEvent) |
78 | 80 | ||
79 | - } else if (eventArray[2] == "shortcutDisabled") { | 81 | + } else if (eventArray[1] == "steps" && eventArray[2] == "shortcutDisabled") { |
80 | let pacingEvent = swiftApi.WarplyPacingEventModel() | 82 | let pacingEvent = swiftApi.WarplyPacingEventModel() |
81 | pacingEvent._isVisible = false | 83 | pacingEvent._isVisible = false |
82 | SwiftEventBus.post("pacing", sender: pacingEvent) | 84 | SwiftEventBus.post("pacing", sender: pacingEvent) | ... | ... |
-
Please register or login to post a comment