From 222ff0cb14912d75993f00420382929dc7c7d33b Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 16 Dec 2022 13:04:56 +0100 Subject: [PATCH] Plugin return: only skip SBS refresh if WPS was previous activity 1) the plugin return value isn't necessarily respected. 2) the screen will be updated regardless, before the WPS is displayed, which means the skin may appear in an "incorrect" state for a moment. It is therefore better to simplify this to a single condition. Change-Id: I723e6fe4862172075b9a4814080f612c2b2fb490 --- apps/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/plugin.c b/apps/plugin.c index 166c9baa04..f0667b7e9d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -926,7 +926,7 @@ int plugin_load(const char* plugin, const void* parameter) tree_unlock_cache(tree_get_context()); pop_current_activity_without_refresh(); - if ((rc != PLUGIN_GOTO_WPS) && (get_current_activity() != ACTIVITY_WPS)) + if (get_current_activity() != ACTIVITY_WPS) { FOR_NB_SCREENS(i) skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);