mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-19 20:34:19 -07:00
Revert "Battery Info > About from FAP -1.4kb DFU"
This reverts commit 20d898a0e0.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#include <applications/settings/about/about.c>
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "power_settings_app.h"
|
||||
#include <flipper_application/flipper_application.h>
|
||||
#include <loader/firmware_api/firmware_api.h>
|
||||
#include <applications/settings/about/about.h>
|
||||
|
||||
static bool power_settings_custom_event_callback(void* context, uint32_t event) {
|
||||
furi_assert(context);
|
||||
@@ -113,26 +112,7 @@ int32_t power_settings_app(void* p) {
|
||||
view_dispatcher_run(app->view_dispatcher);
|
||||
if(app->battery_info->exit_to_about) {
|
||||
app->battery_info->exit_to_about = false;
|
||||
|
||||
bool stay = false;
|
||||
FlipperApplication* fap = flipper_application_alloc(
|
||||
furi_record_open(RECORD_STORAGE), firmware_api_interface);
|
||||
do {
|
||||
FlipperApplicationPreloadStatus preload_res =
|
||||
flipper_application_preload(fap, EXT_PATH("apps/assets/about.fap"));
|
||||
if(preload_res != FlipperApplicationPreloadStatusSuccess) break;
|
||||
FlipperApplicationLoadStatus load_status = flipper_application_map_to_memory(fap);
|
||||
if(load_status != FlipperApplicationLoadStatusSuccess) break;
|
||||
FuriThread* thread = flipper_application_alloc_thread(fap, NULL);
|
||||
furi_thread_set_appid(thread, "about");
|
||||
furi_thread_start(thread);
|
||||
furi_thread_join(thread);
|
||||
if(furi_thread_get_return_code(thread) == 1) stay = true;
|
||||
} while(0);
|
||||
flipper_application_free(fap);
|
||||
furi_record_close(RECORD_STORAGE);
|
||||
|
||||
if(stay) {
|
||||
if(about_settings_app("about_battery")) {
|
||||
scene_manager_next_scene(app->scene_manager, first_scene);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user