Closed Bug 923467 Opened 11 years ago Closed 11 years ago

contacts does not init visibility monitor with empty initial load

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: bkelly, Assigned: bkelly)

References

Details

(Whiteboard: [c= p=1 s= u=])

Attachments

(1 file)

While testing bug 902873 I saw that if I loaded the app with no contacts and then added one, that new contact would not have a selection box when exported. Investigation revealed that this was due to the visibility monitor not running. This occurs because the monitor is only created in notifyAboveTheFold() is called which only happens from loadChunk(). We need to notifyAboveTheFold() even when there are no contacts in the list.
This patch should guarantee that notifyAboveTheFold() and the monior initialization always occur.
Attachment #813539 - Flags: review?(francisco.jordano)
Nom koi? because it blocks a koi+.
blocking-b2g: --- → koi?
Attachment #813539 - Flags: review?(francisco.jordano) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Not reproducible, please re-cheek, renominate and add a screenshot if needed.
blocking-b2g: koi? → -
Once bug 902873 is uplifted this will be reproducible on v1.2 with the selection workflow. Until that uplift happens I will have to back out the patch on master to demonstrate. Here is a video: https://www.dropbox.com/s/llmigjy8h0y1imb/20131010_bug_923467.MOV As you can see if you add a contact from an empty list and then try to export, you don't get any checkboxes while selecting. There are probably also other subtle problems without this fix since the list code generally assumes the visibility monitor is always running.
blocking-b2g: - → koi?
Flags: needinfo?(dscravaglieri)
triage: koi+
blocking-b2g: koi? → koi+
clear ni?, bug is blocker
Flags: needinfo?(dscravaglieri)
Uplifted 9d2e2ee00d5da034c473d7caf337c3eecc174bf9 to: v1.2: 1f654f6cfd4eb8dc8658a02df34cbce20daf1c31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: