소스 검색

fix(mobile): status bar color for the android platform

charlie 3 달 전
부모
커밋
1f632331f5
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/main/mobile/externals.js

+ 0 - 1
src/main/mobile/externals.js

@@ -51,7 +51,6 @@ let initialSettled = false
 const settleStatusBar = async () => {
   if (Capacitor.getPlatform() === 'android') {
     try {
-      await Capacitor.Plugins.App.getInfo() // 等待平台初始化??
       await (new Promise((r) => setTimeout(r, initialSettled ? 300 : 500)))
       if (!initialSettled) { initialSettled = true }
       await StatusBar.setStyle({ style: Style.Light }) // 可选:设置状态栏样式