[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:
@@ -152,7 +152,7 @@ class AirplaneModePreference :
|
|||||||
data: Intent?,
|
data: Intent?,
|
||||||
): Boolean {
|
): Boolean {
|
||||||
if (requestCode == REQUEST_CODE_EXIT_ECM && resultCode == Activity.RESULT_OK) {
|
if (requestCode == REQUEST_CODE_EXIT_ECM && resultCode == Activity.RESULT_OK) {
|
||||||
storage(context).setBoolean(KEY, true)
|
context.getKeyValueStore(KEY)?.setBoolean(KEY, true)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user