mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Update Android KeepScreenOn handling (#13746)
This commit is contained in:
@@ -60,7 +60,8 @@ float CommonScreen::getDevicePixelRatio() const {
|
||||
void CommonScreen::setKeepScreenOn(bool keepScreenOn) {
|
||||
// JniHelper::callStaticVoidMethod(JCLS_HELPER, "setKeepScreenOn", value);
|
||||
// ANativeActivity_setWindowFlags(JniHelper::getAndroidApp()->activity, AWINDOW_FLAG_KEEP_SCREEN_ON, 0);
|
||||
CC_UNUSED_PARAM(keepScreenOn);
|
||||
//CC_UNUSED_PARAM(keepScreenOn);
|
||||
return setKeepScreenOnJNI(keepScreenOn);
|
||||
}
|
||||
|
||||
IScreen::Orientation CommonScreen::getDeviceOrientation() const {
|
||||
|
||||
Reference in New Issue
Block a user