wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Going back from a form containing a WebBrowser component (using Android hardware back key) goes back twice #1139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Make a form with a button that takes you to another form with a 
webview/WebBrowser in it (I think any layout will do but definitely it occurs 
if you put one in centre of a borderlayout)

2. Go to the webview form on an android device
3. Press the hardware back key

What is the expected output? What do you see instead?

You would expect it to go back once (to previous form), in actual fact it goes 
back twice (or shows transition twice, it does appear in other situations to 
jump back to a previous activity too)

What version of the product are you using? On what operating system?

Latest cn1, win7 + netbeans + Android 4.3 on HTC Butterfly 

Please provide any additional information below.

(this does not happen on simulator only android device)

Original issue reported on code.google.com by gareth.m...@gmail.com on 18 Jun 2014 at 2:38

GoogleCodeExporter commented 9 years ago
I've been trying to reproduce this on 3 different Android's 4.4, 4.2 and 2.3 
without success (I used the code from the discussion forum)

Original comment by cf27...@gmail.com on 19 Jun 2014 at 9:04

GoogleCodeExporter commented 9 years ago
On my 4.3 Htc butterfly its almost every single time, makes any app with a 
webview unusable. Just tried on Moto X 4.4.2 it happens way less often but it 
still happens one in every 20 times, for ages I didnt think it was going to 
happen, I used a task manager to kill the app and tried again about 5 times and 
it happened. Very hard to work out why its so inconsistent and worse on some 
devices, maybe some sort of race condition

Original comment by gareth.m...@gmail.com on 19 Jun 2014 at 11:29

GoogleCodeExporter commented 9 years ago
managed to get it to happen on genymotion 4.22 tablet, not as clear because the 
tablet is jerky but you can definitely see 2 transitions sometimes.

Original comment by gareth.m...@gmail.com on 19 Jun 2014 at 11:31

GoogleCodeExporter commented 9 years ago
I am seeing the same effect sometimes on my devices.
Details: Nexus 10 Android 4.4.4 tablet, and HTC One SV Android 4.2.2 smartphone.

Original comment by timo.van...@gmail.com on 16 Jul 2014 at 8:26