Merge "Suppress emergency page search when needed."

This commit is contained in:
TreeHugger Robot
2023-02-13 21:39:26 +00:00
committed by Android (Google) Code Review

View File

@@ -54,8 +54,8 @@ public class EmergencyGestureSettings extends DashboardFragment {
final EmergencyGestureEntrypointPreferenceController controller =
new EmergencyGestureEntrypointPreferenceController(context,
"dummy_emergency_gesture_pref_key");
return !controller.isAvailable()
|| controller.shouldSuppressFromSearch();
return controller.isAvailable()
&& !controller.shouldSuppressFromSearch();
}
};
}