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
diff --git a/src/com/android/settings/Utils.java b/src/com/android/settings/Utils.java
index 7d1e02d..b44d3c7 100644
--- a/src/com/android/settings/Utils.java
+++ b/src/com/android/settings/Utils.java
@@ -1385,7 +1385,7 @@
* @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(