From 3c90b16f7c4cd498a863d03361bb53ff5368ef53 Mon Sep 17 00:00:00 2001 From: Arthur Ishiguro Date: Thu, 22 Oct 2020 07:51:15 -0700 Subject: [PATCH] Send initial airplane mode status to Context Hub Bug: 166845383 Test: Flash, verify setting gets sent on boot Change-Id: Ief850d6e0e1750b60cc8e4ff83b2208b41c3fb5b --- .../core/java/com/android/server/location/ContextHubService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/core/java/com/android/server/location/ContextHubService.java b/services/core/java/com/android/server/location/ContextHubService.java index b6e0bc6e069de..7a2e4ed3cc0b8 100644 --- a/services/core/java/com/android/server/location/ContextHubService.java +++ b/services/core/java/com/android/server/location/ContextHubService.java @@ -244,6 +244,7 @@ public class ContextHubService extends IContextHubService.Stub { } if (mContextHubWrapper.supportsAirplaneModeSettingNotifications()) { + sendAirplaneModeSettingUpdate(); mContext.getContentResolver().registerContentObserver( Settings.Global.getUriFor(Settings.Global.AIRPLANE_MODE_ON), true /* notifyForDescendants */,