Merge "Don't depend on String8 cast to C string [audio]" into main
This commit is contained in:
commit
ecc3e1af82
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ Return<void> PrimaryDevice::getTtyMode(getTtyMode_cb _hidl_cb) {
|
|||
_hidl_cb(retval, TtyMode::OFF);
|
||||
return Void();
|
||||
}
|
||||
TtyMode mode = convertTtyModeToHIDL(halMode);
|
||||
TtyMode mode = convertTtyModeToHIDL(halMode.c_str());
|
||||
if (mode == TtyMode(-1)) {
|
||||
ALOGE("HAL returned invalid TTY value: %s", halMode.c_str());
|
||||
_hidl_cb(Result::INVALID_STATE, TtyMode::OFF);
|
||||
|
|
Loading…
Reference in a new issue