Exemplo n.º 1
0
static void window_unload(Window *window)
{
    cancel_reset_timer();

    if (actionBar)
    {
        action_bar_layer_destroy(actionBar);
        actionBar = NULL;
    }

    if (bitmapRing)
    {
        gbitmap_destroy( bitmapRing );
        bitmapRing = NULL;
    }
    if (bitmapSilence)
    {
        gbitmap_destroy( bitmapSilence );
        bitmapSilence = NULL;
    }

    if (statusTextLayer)
    {
        text_layer_destroy(statusTextLayer);
        statusTextLayer = NULL;
    }
}
Exemplo n.º 2
0
void start_reset_timer()
{
    cancel_reset_timer();

    if (statusResetTimer == NULL)
    {
        statusResetTimer = app_timer_register(STATUS_RESET_TIME, handle_timer, NULL);
    }
}
Exemplo n.º 3
0
void start_reset_timer()
{
	cancel_reset_timer();
	statusResetTimer = app_timer_register( STATUS_RESET_TIME, &reset_timer_callback, NULL );
}
Exemplo n.º 4
0
void handle_deinit()
{
	cancel_reset_timer();
}