mirror of
https://github.com/google/pebble.git
synced 2025-05-01 15:51:40 -04:00
spelling: preexisting
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
815e361d75
commit
8ca8cffcc3
2 changed files with 5 additions and 5 deletions
|
@ -405,8 +405,8 @@ static void prv_is_ancs_alive_cb(void *data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
//! With iOS 8.2 the pre-existing flag seems to be broken. Don't allow notifications for a bit after
|
//! With iOS 8.2 the preexisting flag seems to be broken. Don't allow notifications for a bit after
|
||||||
//! reconnection so that all the "real" pre-existing notification don't come through again.
|
//! reconnection so that all the "real" preexisting notification don't come through again.
|
||||||
static RegularTimerInfo s_notification_connection_delay_timer;
|
static RegularTimerInfo s_notification_connection_delay_timer;
|
||||||
static bool s_just_connected = false;
|
static bool s_just_connected = false;
|
||||||
|
|
||||||
|
@ -893,9 +893,9 @@ static void prv_handle_ns_notification(uint32_t length, const uint8_t *notificat
|
||||||
// Handle the EventID
|
// Handle the EventID
|
||||||
switch (nsnotification->event_id) {
|
switch (nsnotification->event_id) {
|
||||||
case EventIDNotificationAdded:
|
case EventIDNotificationAdded:
|
||||||
// In iOS 8.2 several apps (especially mail.app) seem to be setting the pre-existing flag
|
// In iOS 8.2 several apps (especially mail.app) seem to be setting the preexisting flag
|
||||||
// when they shouldn't. This appeared to be fixed in iOS 9 beta 1.
|
// when they shouldn't. This appeared to be fixed in iOS 9 beta 1.
|
||||||
// By skipping the pre-existing check we will re-recieve all the notifications
|
// By skipping the preexisting check we will re-recieve all the notifications
|
||||||
// we got in the past 2 hours. To get past this ignore notifications for the first couple
|
// we got in the past 2 hours. To get past this ignore notifications for the first couple
|
||||||
// seconds after connecting
|
// seconds after connecting
|
||||||
if (s_just_connected && (nsnotification->event_flags & EventFlagPreExisting)) {
|
if (s_just_connected && (nsnotification->event_flags & EventFlagPreExisting)) {
|
||||||
|
|
|
@ -90,7 +90,7 @@ void hrm_manager_handle_prefs_changed(void);
|
||||||
//! This should not be used by KernelBG or KernelMain clients. For KernelBG client subscriptions,
|
//! This should not be used by KernelBG or KernelMain clients. For KernelBG client subscriptions,
|
||||||
//! please see \ref hrm_manager_subscribe_with_callback. KernelMain clients are not yet supported.
|
//! please see \ref hrm_manager_subscribe_with_callback. KernelMain clients are not yet supported.
|
||||||
//! If the app/worker is already subscribed, this will update the subscription based on the passed
|
//! If the app/worker is already subscribed, this will update the subscription based on the passed
|
||||||
//! in arguments and return the pre-existing HRMSessionRef.
|
//! in arguments and return the preexisting HRMSessionRef.
|
||||||
//! @param app_id the application's AppInstallId
|
//! @param app_id the application's AppInstallId
|
||||||
//! @param update_interval_s requested update interval
|
//! @param update_interval_s requested update interval
|
||||||
//! @param expire_s after this many seconds, this subscription will automatically expire
|
//! @param expire_s after this many seconds, this subscription will automatically expire
|
||||||
|
|
Loading…
Add table
Reference in a new issue