Update Android KeepScreenOn handling (#13746)

This commit is contained in:
OnlyKoei
2022-12-08 17:47:42 +08:00
committed by GitHub
parent c1256393ea
commit e0cd2932b7
4 changed files with 17 additions and 6 deletions
@@ -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 {