Fix Settings usb preference search

* Invert isPageSearchEnabled check

Bug: 192449168
Test: manual testing with TestDPC
Change-Id: I91dcf930485ad16a83cb04bf170c9608c1768ea2
This commit is contained in:
Alex Johnston
2021-06-30 14:36:23 +00:00
parent a3f28b034d
commit 0ad4783163

View File

@@ -107,7 +107,7 @@ public class UsbDetailsFragment extends DashboardFragment {
@Override @Override
protected boolean isPageSearchEnabled(Context context) { protected boolean isPageSearchEnabled(Context context) {
return checkIfUsbDataSignalingIsDisabled( return checkIfUsbDataSignalingIsDisabled(
context, UserHandle.myUserId()) != null; context, UserHandle.myUserId()) == null;
} }
@Override @Override