Inherit lock state when updating notification channels.

When a notification channel is updated, ensure it inherits the 'isBlockable' and 'isImportanceLockedByCriticalDeviceFunction' attributes from the existing channel if it's currently locked.

This was autogenerated by MendIt (go/androidmendit)

Bug: 503434084
Test: atest FrameworksServicesTests:com.android.server.notification.PreferencesHelperTest
Flag: EXEMPT BUGFIX
(cherry picked from commit 778befd095741a74c44bb4918a62a489db21a960)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:fa35047864a3d2fd942dbfc68bc4300dc157bd13
Merged-In: Iaa1a3a1457c564ced2540ee8caa6e7ba8d1400ae
Change-Id: Iaa1a3a1457c564ced2540ee8caa6e7ba8d1400ae
2 files changed