The following code reproduces the bug. As stated above, to reproduce the error the Android System Webview (Beta) version needs to be installed and chosen as primary WebView in Settings. This version will replace the stable release very soon, so time is of the essence
Notice that when navigating back to the previous form, the BrowserComponent is blank on Android (doesn't always happen, might need to try 2 or 3 times to see it). To test, just call testMethod() from anywhere
public void testMethod()
{
Form previous = Display.getInstance().getCurrent();
Form welcomeForm = new Form("Test", new BorderLayout());
BrowserComponent tstBrowser = new BrowserComponent();
welcomeForm.add(BorderLayout.CENTER,tstBrowser);
welcomeForm.getToolbar().addMaterialCommandToRightBar("GO_FORWARD", FontImage.MATERIAL_ARROW_FORWARD, ee -> {
testMethod2();
});
welcomeForm.show();
}
public void testMethod2(){
Form previous = Display.getInstance().getCurrent();
Form welcomeForm = new Form("Test", new BorderLayout());
welcomeForm.getToolbar().addMaterialCommandToLeftBar("ShowBack", FontImage.MATERIAL_ARROW_BACK, ee -> {
previous.showBack();
});
welcomeForm.show();
}