siramix / buzzwords

A mobile word game that will change the word.
www.siramix.com/buzzwords
GNU General Public License v3.0
10 stars 1 forks source link

Double click Bug #91

Closed edwardrowe closed 11 years ago

edwardrowe commented 12 years ago

We should add the workaround to prevent multiple activities from opening up when double tapping buttons that invoke new activities. That is, unless it was fixed in Jellybean.

edwardrowe commented 11 years ago

I think I've cleared these up in this commit: d01441b533b2325d393e36b5e598c4c06ad73e2d

I had to add an additional check for isEnabled() in many of the onClicks, since double clicks seemed to queue up. This throws out the second click. Also added an activity specific boolean that tracks if the activity is going to close. When an activity-switching button is clicked, it flags that boolean so that no other buttons can be clicked. This fixed a crash bug in TurnSummary, and it prevents weirdness on the PackPurchase, Title, and GameSetup.