am 8969817a: Merge "Fix roaming icon when not default signal" into mnc-dev
* commit '8969817a83e2ed5f28f67bd5f7f4de14a5455139': Fix roaming icon when not default signal
This commit is contained in:
@@ -223,7 +223,8 @@ public class MobileSignalController extends SignalController<
|
|||||||
boolean activityOut = mCurrentState.dataConnected
|
boolean activityOut = mCurrentState.dataConnected
|
||||||
&& !mCurrentState.carrierNetworkChangeMode
|
&& !mCurrentState.carrierNetworkChangeMode
|
||||||
&& mCurrentState.activityOut;
|
&& mCurrentState.activityOut;
|
||||||
showDataIcon &= mCurrentState.isDefault;
|
showDataIcon &= mCurrentState.isDefault
|
||||||
|
|| mCurrentState.iconGroup == TelephonyIcons.ROAMING;
|
||||||
int typeIcon = showDataIcon ? icons.mDataType : 0;
|
int typeIcon = showDataIcon ? icons.mDataType : 0;
|
||||||
mCallbackHandler.setMobileDataIndicators(statusIcon, qsIcon, typeIcon, qsTypeIcon,
|
mCallbackHandler.setMobileDataIndicators(statusIcon, qsIcon, typeIcon, qsTypeIcon,
|
||||||
activityIn, activityOut, dataContentDescription, description, icons.mIsWide,
|
activityIn, activityOut, dataContentDescription, description, icons.mIsWide,
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ public class NetworkControllerSignalTest extends NetworkControllerBaseTest {
|
|||||||
for (int testStrength = SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
|
for (int testStrength = SignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
|
||||||
testStrength <= SignalStrength.SIGNAL_STRENGTH_GREAT; testStrength++) {
|
testStrength <= SignalStrength.SIGNAL_STRENGTH_GREAT; testStrength++) {
|
||||||
setupDefaultSignal();
|
setupDefaultSignal();
|
||||||
|
setConnectivity(NetworkCapabilities.TRANSPORT_CELLULAR, false, false);
|
||||||
setGsmRoaming(true);
|
setGsmRoaming(true);
|
||||||
setLevel(testStrength);
|
setLevel(testStrength);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user