[Catalyst] Support parameterized screens
Bug: 388420844 Flag: com.android.settings.flags.catalyst Test: devtool Change-Id: I73158d8aca0b026d944451289965d72c2c814efb
This commit is contained in:
@@ -157,11 +157,10 @@ fun transformFrameworkSetValueRequest(request: SetValueRequest): PreferenceSette
|
|||||||
SettingsPreferenceValue.TYPE_INT -> preferenceValueProto {
|
SettingsPreferenceValue.TYPE_INT -> preferenceValueProto {
|
||||||
intValue = request.preferenceValue.intValue
|
intValue = request.preferenceValue.intValue
|
||||||
}
|
}
|
||||||
else -> null
|
else -> return null
|
||||||
}
|
|
||||||
return valueProto?.let {
|
|
||||||
PreferenceSetterRequest(request.screenKey, request.preferenceKey, it)
|
|
||||||
}
|
}
|
||||||
|
// TODO: support parameterized screen
|
||||||
|
return PreferenceSetterRequest(request.screenKey, null, request.preferenceKey, valueProto)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Translate Catalyst SET VALUE result to Framework SET VALUE result */
|
/** Translate Catalyst SET VALUE result to Framework SET VALUE result */
|
||||||
|
Reference in New Issue
Block a user