android
This commit is contained in:
@@ -69,12 +69,11 @@ CLLMainLua.init = function()
|
||||
end
|
||||
|
||||
function CLLMainLua.setAndroidStatusBar()
|
||||
printe(SystemInfo.deviceName, "====", SystemInfo.deviceModel)
|
||||
if CLPathCfg.self.platform ~= "Android" then
|
||||
return
|
||||
end
|
||||
local mode = SystemInfo.deviceModel
|
||||
if string.find(mode, "huawei") then
|
||||
local mode = string.upper( SystemInfo.deviceModel)
|
||||
if string.find(mode, "HUAWEI") then
|
||||
AndroidStatusBar.setFlags(AndroidStatusBar.WINDOW_FLAG_FORCE_NOT_FULLSCREEN)
|
||||
AndroidStatusBar.setColor(AndroidStatusBar.DEFAULT_BACKGROUND_COLOR)
|
||||
else
|
||||
|
||||
@@ -13,7 +13,7 @@ function CSPTasks.init(csObj)
|
||||
csSelf = csObj
|
||||
transform = csObj.transform
|
||||
CSPTasks.setEventDelegate()
|
||||
CSPTasks.contentRect = MyUtl.getUIContent(csSelf, 772)
|
||||
CSPTasks.contentRect = MyUtl.getUIContent(csSelf, 360+220+60)
|
||||
|
||||
uiobjs.Content = getCC(transform, "PanelContent", "UIPanel")
|
||||
uiobjs.Content.transform.localPosition = Vector3.zero
|
||||
|
||||
Reference in New Issue
Block a user