santoshko / codenameone

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

Switch of OnOffSwitch disappears after double-click while in "on" state. #1032

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The "switch" disappears when double-clicking the switch.

What steps will reproduce the problem?
1. Application with OnOffSwitch.
2. Switch to the "on" state (=slider to the right).
3. Double-click the dark part. (Works both in the emulators and on actual 
devices.)

What is the expected output? What do you see instead?
Expected the switch to flip, but instead the "slider" disappears.

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

Please provide any additional information below.
See attached images for initial switch and result after double-tap.

Original issue reported on code.google.com by timo.van...@gmail.com on 13 Jan 2014 at 12:45

Attachments:

GoogleCodeExporter commented 9 years ago
This isn't happening to me either.

Original comment by shai.almog on 15 Jan 2014 at 6:36

GoogleCodeExporter commented 9 years ago
On my machine it proves to be very reproducible:

I started a new project, created a form with only a standard OnOffSwitch, and 
ran the app in the Nexus simulator.

Double-clicking the "ON" part with the mouse while switched in the "ON" 
position reproduced the above result every time on my machine.

Original comment by timo.van...@gmail.com on 15 Jan 2014 at 6:53

GoogleCodeExporter commented 9 years ago
This issue has been open for a while, and can easily be reproduced in the CN1 
Designer without even compiling the application:

1. Place switch on a new form in the CN1 Designer.
2. Emulate the form in an Android (Nexus or Xoom) skin.
3. Double click on the RIGHT part of the switch when it is in the "off" 
position.

The button of the switch then disappears, shinking the component.

This issue makes it impractical to use the on/off switch in any application 
that is to run on Android.

Original comment by timo.van...@gmail.com on 24 Jul 2014 at 7:34