[Catalyst] Avoid creating new KeyValueStore for AirplaneModePreference

NO_IFTTT=Catalyst only

Bug: 375925972
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Test: atest
Change-Id: I1cffcc68358f36d36e14cde5997907816ebe08a4
This commit is contained in:
Jacky Wang
2024-12-08 19:36:29 +08:00
parent dc1a52a2ee
commit 7ca56d493a

View File

@@ -152,7 +152,7 @@ class AirplaneModePreference :
data: Intent?,
): Boolean {
if (requestCode == REQUEST_CODE_EXIT_ECM && resultCode == Activity.RESULT_OK) {
storage(context).setBoolean(KEY, true)
context.getKeyValueStore(KEY)?.setBoolean(KEY, true)
}
return true
}