已开启
fix: 快速启动显示问题 #20316
SkyQAQ创建于 7 天前
fix: 快速启动显示问题 #20316
已开启
共 1 个文件变更+5-5
| @@ -106,11 +106,11 @@ export default class EntryAbility extends UIAbility { | |||
| 106 | hilog.info(DOMAIN, TAG, 'Succeeded in loading the content.'); | 106 | hilog.info(DOMAIN, TAG, 'Succeeded in loading the content.'); |
| 107 | try { | 107 | try { |
| 108 | windowStage.getMainWindow((err, data) => { | 108 | windowStage.getMainWindow((err, data) => { |
| 109 | - data.setWindowLayoutFullScreen(true).then(() => { | 109 | + // data.setWindowLayoutFullScreen(true).then(() => { |
| 110 | - hilog.info(DOMAIN, TAG, 'Succeeded in setting the window layout to full-screen mode.'); | 110 | + // hilog.info(DOMAIN, TAG, 'Succeeded in setting the window layout to full-screen mode.'); |
| 111 | - }).catch((err:BusinessError) => { | 111 | + // }).catch((err:BusinessError) => { |
| 112 | - hilog.error(DOMAIN, TAG, 'Failed to set the window layout to full-screen mode. Cause: %{public}s', JSON.stringify(err)); | 112 | + // hilog.error(DOMAIN, TAG, 'Failed to set the window layout to full-screen mode. Cause: %{public}s', JSON.stringify(err)); |
| 113 | - }) | 113 | + // }) |
| 114 | data.setWindowSystemBarProperties({ | 114 | data.setWindowSystemBarProperties({ |
| 115 | navigationBarColor: '#F1F3F5', | 115 | navigationBarColor: '#F1F3F5', |
| 116 | statusBarColor: '#F1F3F5' | 116 | statusBarColor: '#F1F3F5' |