mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-23 17:09:46 +00:00
capi上报首选项 Signed-off-by:baozewei@huawei.com
Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
parent
fa921df668
commit
49c748de4c
@ -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 =
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user