summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/action.c4
-rw-r--r--apps/gui/bitmap/list.c2
-rw-r--r--apps/keymaps/keymap-android.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/apps/action.c b/apps/action.c
index ee6cbaa..5ebcbf7 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -233,6 +233,10 @@ static int get_action_worker(int context, int timeout,
* multimedia button presses don't go through the action system */
if (button == BUTTON_NONE || button & (SYS_EVENT|BUTTON_MULTIMEDIA))
return button;
+ /* the special redraw button should result in a screen refresh */
+ if (button == BUTTON_REDRAW)
+ return ACTION_REDRAW;
+
/* Don't send any buttons through untill we see the release event */
if (wait_for_release)
{
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 09a66f3..2f13d8b 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -587,7 +587,7 @@ static int kinetic_callback(struct timeout *tmo)
data->velocity = 0;
}
- queue_post(&button_queue, BUTTON_TOUCHSCREEN, 0);
+ queue_post(&button_queue, BUTTON_REDRAW, 0);
/* stop if the velocity hit or crossed zero */
if (!data->velocity)
{
diff --git a/apps/keymaps/keymap-android.c b/apps/keymaps/keymap-android.c
index b7b93ac..ea1abbc 100644
--- a/apps/keymaps/keymap-android.c
+++ b/apps/keymaps/keymap-android.c
@@ -50,9 +50,6 @@ static const struct button_mapping button_context_standard[] = {
{ ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
{ ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
- /* special hack to get a redraw on activity resume, see lcd-android.c */
- { ACTION_REDRAW, BUTTON_FORCE_REDRAW, BUTTON_NONE },
-
LAST_ITEM_IN_LIST
}; /* button_context_standard */