summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2025-01-06 16:24:09 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2025-01-10 11:06:17 +0000
commitfe4f20c8baa6291ec5f3990e5f15d8dd4599ff39 (patch)
tree0ba82a98b7e1ef81122d8716f850ad038b5e2c41
parent7ba8fc295df6164a2b26560fb0c1975a6ba7be17 (diff)
layout: Check for valid app_id on previous appHEADtrout_19.90.0trout/19.90.019.90.0master
This is an oversight so let us fix that as well. A corner case which we can trigger after closing/opening the same app. Bug-AGL: SPEC-5324 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Idaa3da8edb8231d6f4be66654ea42eb617651093
-rw-r--r--src/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout.c b/src/layout.c
index 6c1df75..9e39fd4 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -395,7 +395,7 @@ ivi_layout_activate_complete(struct ivi_output *output,
* we're trying to complete activation with means we're
* operating on the same app_id so do update previous_active as
* it will overwrite it with the same value */
- if (app_id && !strcmp(c_app_id, app_id)) {
+ if (c_app_id && app_id && !strcmp(c_app_id, app_id)) {
update_previous = false;
}
}