Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
张国晔 committed Nov 3, 2015
1 parent 0cfcbca commit 51b7b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tweak.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- (NSInteger)numberOfSectionsInTableView:(id)view {
NSInteger result = %orig;
if ([[self specifier].identifier isEqualToString:@"MOBILE_DATA_SETTINGS_ID"]) {
if (![self tableView:view titleForHeaderInSection:result - 2])
if (result > 2 && ![self tableView:view titleForHeaderInSection:result - 2])
cellularSectionNumber = result - 3;
else
cellularSectionNumber = result - 2;
Expand Down

0 comments on commit 51b7b19

Please sign in to comment.