Merge "Send initial airplane mode status to Context Hub"

This commit is contained in:
TreeHugger Robot
2020-10-22 16:40:12 +00:00
committed by Android (Google) Code Review

View File

@@ -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 */,