This commit is contained in:
Willy-JL
2024-03-15 03:07:16 +00:00
22 changed files with 218 additions and 69 deletions

View File

@@ -1,6 +1,8 @@
/**
* @file view_dispatcher.h
* GUI: ViewDispatcher API
* @brief GUI: ViewDispatcher API
*
* @warning Views added to a ViewDispatcher MUST NOT be in a ViewStack at the same time.
*/
#pragma once

View File

@@ -1,3 +1,9 @@
/**
* @file view_holder.h
* @brief GUI: ViewHolder API
*
* @warning View added to a ViewHolder MUST NOT be in a ViewStack at the same time.
*/
#pragma once
#include <gui/view.h>

View File

@@ -1,11 +1,13 @@
/**
* @file view_stack.h
* GUI: ViewStack API
* @brief GUI: ViewStack API
*
* ViewStack accumulates several Views in one stack.
* Draw callbacks are called sequentially starting from
* first added. Input callbacks are called in reverse order.
* Consumed input is not passed on underlying layers.
*
* @warning Views added to a ViewStack MUST NOT be in a ViewDispatcher or a ViewHolder at the same time.
*/
#pragma once

View File

@@ -193,8 +193,6 @@ bool rpc_pb_stream_read(pb_istream_t* istream, pb_byte_t* buf, size_t count) {
furi_assert(session);
furi_assert(istream->bytes_left);
/* TODO FL-3768 this function may be called after
marking the worker for termination */
if(session->terminate) {
return false;
}