Closed Bug 1089668 Opened 10 years ago Closed 10 years ago

Fix NPE when setting pressed state on TabStripItemView

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 36

People

(Reporter: lucasr, Assigned: lucasr)

References

Details

Attachments

(1 file)

The pressed state sometimes is triggered in a runnable internally and might run after the item view has been detached.
Attachment #8511998 - Flags: review?(michael.l.comella)
Comment on attachment 8511998 [details] [diff] [review] Avoid NPE on parent when tab strip item is pressed (r=mcomella) Review of attachment 8511998 [details] [diff] [review]: ----------------------------------------------------------------- (In reply to Lucas Rocha (:lucasr) from comment #0) > The pressed state sometimes is triggered in a runnable internally and might > run after the item view has been detached. This seems like a pretty hard-to-find side-effect for users of TwoWayView - perhaps there is some way to fix this upstream?
Attachment #8511998 - Flags: review?(michael.l.comella) → review+
(In reply to Michael Comella (:mcomella) from comment #2) > Comment on attachment 8511998 [details] [diff] [review] > Avoid NPE on parent when tab strip item is pressed (r=mcomella) > > Review of attachment 8511998 [details] [diff] [review]: > ----------------------------------------------------------------- > > (In reply to Lucas Rocha (:lucasr) from comment #0) > > The pressed state sometimes is triggered in a runnable internally and might > > run after the item view has been detached. > > This seems like a pretty hard-to-find side-effect for users of TwoWayView - > perhaps there is some way to fix this upstream? This bug is specific to our UI because we invalidate the parent when one of the child views is pressed (to update the dividers). Not something that can/should be fixed upstream.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 36
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: