Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

* [android] Fixing clearTimeout and clearInterval doesn't work when funId is greater than 127 #439

Merged
merged 1 commit into from
Jun 13, 2017

Conversation

YorkShen
Copy link
Contributor

Due the implementation of int auto-boxing and messageQueue, clearTimeout and clearTimeout won't work when funId is greater than 127. It works fine when funId is smaller than 127.

@weex-bot
Copy link

weex-bot commented Jun 12, 2017

Warnings
⚠️ No Changelog changes!
⚠️ This PR should update related documents as well.
Messages
📖 According to the blame info, we recommended @Rowandjj , @sospartan to be the reviewers.

Generated by 🚫 dangerJS

Copy link
Contributor

@sospartan sospartan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some problems need fix:

  • A JIRA issue relate to this PR
  • The danger warn and error

public class WXTimerModule extends WXModule implements Destroyable, Handler.Callback {

private final static String TAG = "timer";
private Handler handler;
private SparseArray<Integer> antiIntAutoBoxing;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m prefix?

Copy link
Contributor Author

@YorkShen YorkShen Jun 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

antiIntAutoBoxing is enough.

  • JIRA is down, BTW.
  • JIRA waring is irrelevant. I'm just fixing bug.

@YorkShen
Copy link
Contributor Author

  • JIRA is down, BTW.
  • JIRA waring is irrelevant. I'm just fixing bug. NO document is needed.

@YorkShen YorkShen changed the title * [android] Fixing clearTimeout and clearInterval doesn't when funId is greater than 127 * [android] Fixing clearTimeout and clearInterval doesn't work when funId is greater than 127 Jun 13, 2017
@YorkShen
Copy link
Contributor Author

@asfgit asfgit merged commit fefe2e8 into apache:0.14-dev Jun 13, 2017
@YorkShen YorkShen deleted the android-bugfix-timer branch June 13, 2017 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants