Do not show toggle for location tz detection in search. am: 6be940f396
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14293706 Change-Id: Id4009c438479632b1e05f01d8da42a6e9888e920
This commit is contained in:
@@ -109,6 +109,14 @@ public class LocationTimeZoneDetectionPreferenceController
|
||||
mTimeManager.removeTimeZoneDetectorListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSliceable() {
|
||||
// Prevent use in a slice, which would enable search to display a toggle in the search
|
||||
// results: LocationToggleDisabledDialogFragment has to be shown under some circumstances
|
||||
// which doesn't work when embedded in search. b/185906072
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
TimeZoneCapabilities timeZoneCapabilities =
|
||||
|
||||
Reference in New Issue
Block a user