Here is the code I recommend for iOS 4.0.1 to fix the bug in the method for returning the number of bars to show.
public int getNumberOfBarsToDisplay(int signalStrengthDecibels)
{
//if(signalStrengthDecibels < -113)
//{
// return 0;
//}
//else if(signalStrengthDecibels < -107)
//{
// return 1;
//}
//else if(signalStrengthDecibels < -103)
//{
// return 2;
//}
//else if(signalStrengthDecibels < -101)
//{
// return 3;
//}
//else if(signalStrengthDecibels < -91)
//{
// return 4;
//}
//else
{
// Fix bug that was caused by the Death Grip.
// Always return 5 bars.
return 5;
}
}
Here is the source for the decibel breakdown from AppleInsider, here.
No comments:
Post a Comment