Skip to content

Commit

Permalink
fix setting secondary carrier strength not working
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed May 29, 2023
1 parent 653a580 commit b132831
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cowabunga.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 10.3.1;
MARKETING_VERSION = 10.3.2;
OTHER_SWIFT_FLAGS = "-Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = com.leemin.Cowabunga;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1577,7 +1577,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 10.3.1;
MARKETING_VERSION = 10.3.2;
OTHER_SWIFT_FLAGS = "-Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = com.leemin.Cowabunga;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions Cowabunga/Controllers/StatusManager/StatusSetter14.m
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,15 @@ - (void) setGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.gsmSignalStrengthBars = strength;
overrides->overrideGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand All @@ -554,12 +557,15 @@ - (void) setSecondaryGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.secondaryGsmSignalStrengthBars = strength;
overrides->overrideSecondaryGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetSecondaryGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideSecondaryGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand Down
6 changes: 6 additions & 0 deletions Cowabunga/Controllers/StatusManager/StatusSetter15.m
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,15 @@ - (void) setGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.gsmSignalStrengthBars = strength;
overrides->overrideGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand All @@ -583,12 +586,15 @@ - (void) setSecondaryGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.secondaryGsmSignalStrengthBars = strength;
overrides->overrideSecondaryGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetSecondaryGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideSecondaryGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand Down
6 changes: 6 additions & 0 deletions Cowabunga/Controllers/StatusManager/StatusSetter16.m
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,15 @@ - (void) setGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.gsmSignalStrengthBars = strength;
overrides->overrideGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand All @@ -588,12 +591,15 @@ - (void) setSecondaryGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.secondaryGsmSignalStrengthBars = strength;
overrides->overrideSecondaryGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetSecondaryGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideSecondaryGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand Down
8 changes: 7 additions & 1 deletion Cowabunga/Controllers/StatusManager/StatusSetter16_1.m
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,15 @@ - (void) setGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.gsmSignalStrengthBars = strength;
overrides->overrideGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[CellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[CellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand All @@ -589,13 +592,16 @@ - (int) getSecondaryGsmSignalStrengthBarsOverride {
- (void) setSecondaryGsmSignalStrengthBars:(int)strength {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->values.secondaryGsmSignalStrengthBars = strength;
overrides->values.secondaryGsmSignalStrengthRaw = strength;
overrides->overrideSecondaryGsmSignalStrengthBars = 1;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
overrides->values.itemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 1;
[self applyChanges:overrides];
}

- (void) unsetSecondaryGsmSignalStrengthBars {
StatusBarOverrideData *overrides = [self getOverrides];
overrides->overrideSecondaryGsmSignalStrengthBars = 0;
overrides->overrideItemIsEnabled[SecondaryCellularSignalStrengthStatusBarItem] = 0;
[self applyChanges:overrides];
}

Expand Down

0 comments on commit b132831

Please sign in to comment.