From 3311c2c07fe21d7a24b0237b2b9f2647ea95dbab Mon Sep 17 00:00:00 2001 From: hai007 Date: Mon, 27 Apr 2026 10:34:53 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 906432793 --- sharing/nearby_sharing_service_impl.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sharing/nearby_sharing_service_impl.cc b/sharing/nearby_sharing_service_impl.cc index 4f0c3086..dbcb557b 100644 --- a/sharing/nearby_sharing_service_impl.cc +++ b/sharing/nearby_sharing_service_impl.cc @@ -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.";