Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
Respet Pebble's quiet time.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejdro committed Nov 25, 2016
1 parent 108a587 commit f20016c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/PebbleDialer.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,16 @@ static void send_initial_packet() {
}

int main() {
if (quiet_time_is_active())
{
AppLaunchReason launchReason = launch_reason();
if (launchReason == APP_LAUNCH_PHONE)
{
// Incoming call popup was launched by phone, but quiet time is active. Lets bail out.
return 0;
}
}

app_message_register_outbox_sent(data_delivered);
app_message_register_inbox_received(received_data);

Expand Down

0 comments on commit f20016c

Please sign in to comment.