mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 04:25:28 -04:00
add window init flag for bootanimation
Signed-off-by: zengqingyu <zengqingyu3@huawei.com> Change-Id: Idd66418b0e47d5fa0ac8f1d7cc46ea9cd5fe69f1
This commit is contained in:
@@ -70,6 +70,12 @@ ohos_shared_library("libdms") {
|
||||
"ipc:ipc_core",
|
||||
]
|
||||
|
||||
if (is_standard_system) {
|
||||
external_deps += [ "startup_l2:syspara" ]
|
||||
} else {
|
||||
external_deps += [ "startup:syspara" ]
|
||||
}
|
||||
|
||||
part_name = "window_manager"
|
||||
subsystem_name = "window"
|
||||
}
|
||||
|
||||
@@ -104,6 +104,12 @@ ohos_shared_library("libwms") {
|
||||
"ipc:ipc_core",
|
||||
]
|
||||
|
||||
if (is_standard_system) {
|
||||
external_deps += [ "startup_l2:syspara" ]
|
||||
} else {
|
||||
external_deps += [ "startup:syspara" ]
|
||||
}
|
||||
|
||||
part_name = "window_manager"
|
||||
subsystem_name = "window"
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <input_window_monitor.h>
|
||||
#include <nocopyable.h>
|
||||
#include <parameters.h>
|
||||
#include <system_ability.h>
|
||||
#include "singleton_delegator.h"
|
||||
#include "wm_single_instance.h"
|
||||
@@ -80,7 +81,6 @@ private:
|
||||
sptr<WindowController> windowController_;
|
||||
sptr<InputWindowMonitor> inputWindowMonitor_;
|
||||
sptr<SnapshotController> snapshotController_;
|
||||
const int WAITING_RS_TIME = 10;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,6 @@ bool WindowManagerService::Init()
|
||||
return false;
|
||||
}
|
||||
WLOGFI("WindowManagerService::Init success");
|
||||
sleep(WAITING_RS_TIME); // for RS temporary
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -112,6 +111,11 @@ WMError WindowManagerService::AddWindow(sptr<WindowProperty>& property)
|
||||
if (res == WMError::WM_OK) {
|
||||
inputWindowMonitor_->UpdateInputWindow(property->GetWindowId());
|
||||
}
|
||||
if (property->GetWindowType() == WindowType::WINDOW_TYPE_NAVIGATION_BAR
|
||||
|| property->GetWindowType() == WindowType::WINDOW_TYPE_STATUS_BAR) {
|
||||
WLOGFI("WindowManagerService::AddWindow System Window called");
|
||||
system::SetParameter("persist.window.boot.inited", "1");
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user