diff options
author | ConfuSomu | 2021-08-05 14:29:20 -0400 |
---|---|---|
committer | ConfuSomu | 2021-08-05 14:29:20 -0400 |
commit | a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a (patch) | |
tree | f89d4c75b2300d0add709abf15864ba664803d9c /buttons.cpp | |
parent | ea9511a96adac32dd7277649be7684202244c5bc (diff) | |
download | pico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.tar pico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.tar.gz pico-watch-a9b45a41a5c7fa91f4e920eb28fe10c2af18a37a.zip |
Rename current_app to foreground_app
This is a more descriptive name as there could be multiple apps that are
currently open, or on-screen, such as a system UI or a status bar.
Diffstat (limited to 'buttons.cpp')
-rw-r--r-- | buttons.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buttons.cpp b/buttons.cpp index 79202c8..a4eacab 100644 --- a/buttons.cpp +++ b/buttons.cpp @@ -16,10 +16,10 @@ void gpio_interrupt_cb(uint gpio, uint32_t events) { if (delta_since_press > g_s.button_delay_time) { if (app_api.m_interpret_button_press) { - if (gpio == BUTTON_HOME && (g_s.current_app->app_get_attributes().id != 0)) // Home app + if (gpio == BUTTON_HOME && (g_s.foreground_app->app_get_attributes().id != 0)) // Home app app_mgr::app_switch_request(0); else - app_mgr::app_btnpressed(g_s.current_app, gpio, delta_since_press); + app_mgr::app_btnpressed(g_s.foreground_app, gpio, delta_since_press); } app_api.button_last_set(gpio); |