[bugfix]:[toast设置TOPMOST时,走DEFAULT逻辑]

Signed-off-by: miaoyu <miaoyu6@huawei.com>
Change-Id: I63bb4cdb136d660834c5bf459ab33d9565505db5
This commit is contained in:
miaoyu 2024-08-02 08:26:24 +00:00
parent c03510f7f6
commit daa871e69c

View File

@ -163,6 +163,10 @@ bool GetToastShowMode(napi_env env, napi_value showModeNApi, NG::ToastShowMode&
showMode = static_cast<NG::ToastShowMode>(num);
}
}
if (showMode == NG::ToastShowMode::TOP_MOST) {
showMode = NG::ToastShowMode::DEFAULT;
}
return true;
}