From ee73ccf6ef735fbf64bf5cc83647ff1d28697ed3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 2 Feb 2026 17:25:51 +0000 Subject: [PATCH] Improve code comment clarity Co-authored-by: adbenitez <24558636+adbenitez@users.noreply.github.com> --- src/main/java/org/thoughtcrime/securesms/util/ViewUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/util/ViewUtil.java b/src/main/java/org/thoughtcrime/securesms/util/ViewUtil.java index 30a6f8fed..b12879699 100644 --- a/src/main/java/org/thoughtcrime/securesms/util/ViewUtil.java +++ b/src/main/java/org/thoughtcrime/securesms/util/ViewUtil.java @@ -327,8 +327,7 @@ public class ViewUtil { Insets systemBars = windowInsets.getInsets(WindowInsetsCompat.Type.systemBars()); Insets displayCutout = windowInsets.getInsets(WindowInsetsCompat.Type.displayCutout()); - // We want system bars (status + navigation) and display cutout, but NOT the IME keyboard - // systemBars already contains navigation bar without keyboard, so just use it directly + // Combine systemBars (which excludes IME) with displayCutout using max to handle notches/cutouts Insets combined = Insets.max(systemBars, displayCutout); return combined;