From 8d4ba6d9044cc060d04a112721facf62bf70d73c Mon Sep 17 00:00:00 2001 From: Sunny Shao Date: Mon, 25 Mar 2024 09:19:11 +0800 Subject: [PATCH] Use the correct Edge to Edge flag - Use the correct flag to fix the navigation bar problem. Fixes: 330217912 Test: manual test Change-Id: I37869d5cc713be2b03bc8e9206ff1e0dcee8512e --- src/com/android/settings/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java index 7d1e02d9c0f..b44d3c79484 100644 --- a/src/com/android/settings/Utils.java +++ b/src/com/android/settings/Utils.java @@ -1385,7 +1385,7 @@ public final class Utils extends com.android.settingslib.Utils { * @param activity the Activity need to setup the edge to edge feature. */ public static void setupEdgeToEdge(@NonNull FragmentActivity activity) { - if (com.android.window.flags.Flags.edgeToEdgeByDefault()) { + if (com.android.window.flags.Flags.enforceEdgeToEdge()) { ViewCompat.setOnApplyWindowInsetsListener(activity.findViewById(android.R.id.content), (v, windowInsets) -> { Insets insets = windowInsets.getInsets(