capi上报首选项 Signed-off-by:baozewei@huawei.com

Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
b30052170 2024-09-04 14:23:19 +08:00
parent fa921df668
commit 49c748de4c
2 changed files with 3 additions and 1 deletions

View File

@ -462,7 +462,8 @@ void ParsePrinterPreference(const std::string &printerPreference, Print_PrinterI
std::string defaultOrientation = GetSettingItemString(ORIENTATION_STRING, defaultSetting, setting);
if (!defaultOrientation.empty()) {
ConvertOrientationMode(std::atoi(defaultOrientation.c_str()), nativePrinterInfo.defaultValue.defaultOrientation);
ConvertOrientationMode(
std::atoi(defaultOrientation.c_str()), nativePrinterInfo.defaultValue.defaultOrientation);
}
nativePrinterInfo.defaultValue.defaultPageSizeId =

View File

@ -3017,5 +3017,6 @@ void PrintServiceAbility::NotifyAppDeletePrinterWithDefaultPrinter(const std::st
opsJson["nextDefaultPrinter"] = dafaultPrinterId;
printerInfo.SetOption(opsJson.dump());
SendPrinterEventChangeEvent(PRINTER_EVENT_DELETED, printerInfo);
SendPrinterChangeEvent(PRINTER_EVENT_DELETED, printerInfo);
}
} // namespace OHOS::Print