Automated Code Change

PiperOrigin-RevId: 906432793
This commit is contained in:
hai007
2026-04-27 10:36:15 -07:00
committed by Copybara-Service
parent b8ef0d45cf
commit 3311c2c07f
+1 -3
View File
@@ -1921,9 +1921,7 @@ void NearbySharingServiceImpl::InvalidateReceiveSurfaceState() {
void NearbySharingServiceImpl::InvalidateAdvertisingState() {
// Do not advertise on lock screen unless Self Share is enabled.
if (is_screen_locked_ &&
!NearbyFlags::GetInstance().GetBoolFlag(
config_package_nearby::nearby_sharing_feature::kEnableSelfShareUi)) {
if (is_screen_locked_) {
StopAdvertising();
VLOG(1) << __func__
<< ": Stopping advertising because the screen is locked.";