Closed Bug 1171633 Opened 9 years ago Closed 9 years ago

New toggle appears in settings when disconnecting account

Categories

(Firefox for iOS :: General, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: tecgirl, Assigned: st3fan)

References

Details

(Keywords: reproducible)

Attachments

(2 files)

A toggle will appear next to 'Version x.x' when disconnecting or signing into a FxA in Settings. In action: http://c.tecgirl.com/bVpw
Assignee: nobody → sarentz
Just noticed this now and hit it on master.
tracking-fxios: --- → ?
Keywords: reproducible
Assignee: sarentz → nobody
I think this was fixed with Darrin's fix!
Flags: needinfo?(dhenein)
nope, just kidding hehe still needs to be fixed
^ above behavior was made when signing in and refreshing to sync O_O
Assignee: nobody → sarentz
Status: NEW → ASSIGNED
I'll take this one since I probably introduced it. (I added the first item with a UISwitch in it)
This patch resets the cell's `accessoryView` to `nil` when it is configured with the defaults. This is not the best solution. I think what really should happen is that instead of subclassing a `Setting` class, we should simply implement `UITableViewCell` subclasses for the individual items, with unique `reuseIdentifiers`. There is no need to put an extra abstraction on top of that.
Attachment #8629406 - Flags: review?(sleroux)
Comment on attachment 8629406 [details] [review] PR: https://github.com/mozilla/firefox-ios/pull/672 Yup this works for now. When we move over to a subclass we can override the prepForReuse method to perform this resetting of values.
Attachment #8629406 - Flags: review?(sleroux) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Flags: needinfo?(dhenein)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: