MobileChromeApps / mobile-chrome-apps

Chrome apps on Android and iOS
BSD 3-Clause "New" or "Revised" License
2.5k stars 348 forks source link

Flickering of a white background when app is loading or on orientation change #593

Open coets opened 8 years ago

coets commented 8 years ago

Using cca 0.7.4 / angularjs

In Android, the app is flickering during loading, a white background appears two times before the webview's content is displayed, the background is black otherwise. Specifying a background color in the config.xml file of the project only has impact on the second background. Modifying the theme of the activity in AndroidManifest.xml does not have any impact.

A similar issue happens when changing the orientation of the device, a white area appears before the page is correctly resized. Changing the theme of the activity from Theme.Black.NoTitleBar (default) to Theme.Translucent seems to have impact on this specific issue (the problem occurs less often, almost not anymore).

I did not have the same problem with previous versions of cca as far as I know. I created a new project to avoid any conflictual situation with older versions.