Browse Source

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

charlie 3 months ago
parent
commit
1f632331f5
1 changed files with 0 additions and 1 deletions
  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 }) // 可选:设置状态栏样式