Currently I'm experiencing a bug where if the user quickly taps a button, the intent that the button is attached to will fire off multiple times, resulting in a stack of that intent that will need to be back traced through again. How can I avoid this or remedy this?
Thanks ~k
This is inside of the onClickListener. I set the boolean value here, then I unset it at the end of the process.
if(!isDating)
{
intent.setClass(context, EventDate.class);
isDating = true;
((TabGroupActivity)
context).startChildActivity("EventDate",intent);
}
Try setting the flags for the intent like
intent.setFlags(FLAG_ACTIVITY_BROUGHT_TO_FRONT);
You can also set this flag via AndroidManifest.xml file in the Application section. Prefer this method over above one.
Updating launchMode using the Manifest file
Hope this resolves your issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With