Merge lp:~mikemc/ubuntuone-ios-music/showing-settingsviewcontroller into lp:ubuntuone-ios-music
Status: | Merged |
---|---|
Approved by: | Paul Hummer |
Approved revision: | 258 |
Merged at revision: | 258 |
Proposed branch: | lp:~mikemc/ubuntuone-ios-music/showing-settingsviewcontroller |
Merge into: | lp:ubuntuone-ios-music |
Diff against target: |
28 lines (+10/-1) 1 file modified
Music/UOAppDelegate.m (+10/-1) |
To merge this branch: | bzr merge lp:~mikemc/ubuntuone-ios-music/showing-settingsviewcontroller |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | Approve | ||
Review via email: mp+153630@code.launchpad.net |
Commit message
- Fix fencepost error in showing settings view when no creds are found.
Description of the change
- Fix fencepost error in showing settings view when no creds are found.
The issue was caused by the activate code assuming there would be 5 tab view controllers, when there was only 4, due to disabling the connection to the playlistslistvi
The crash was apparently due to trying to activate a songs view controller when it was expecting creds. It was activating an arbitrary one because there were 4 view controllers and we were telling it to activate the one at index 4.
I was able to reproduce this on the iphone 6.1 simulator consistently, and this patch fixes the crash I was seeing.