Merge "Make data RAT icon test pass"
This commit is contained in:
committed by
Android (Google) Code Review
commit
71e9a56fc3
@@ -288,7 +288,7 @@ public class MobileSignalController extends SignalController<
|
||||
String description = null;
|
||||
// Only send data sim callbacks to QS.
|
||||
if (mCurrentState.dataSim) {
|
||||
qsTypeIcon = showDataIcon ? icons.mQsDataType : 0;
|
||||
qsTypeIcon = (showDataIcon || mConfig.alwaysShowDataRatIcon) ? icons.mQsDataType : 0;
|
||||
qsIcon = new IconState(mCurrentState.enabled
|
||||
&& !mCurrentState.isEmergency, getQsCurrentIconId(), contentDescription);
|
||||
description = mCurrentState.isEmergency ? null : mCurrentState.networkName;
|
||||
|
||||
@@ -138,8 +138,6 @@ public class NetworkControllerDataTest extends NetworkControllerBaseTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Flaky")
|
||||
//TODO(evanlaird): figure out why this fails
|
||||
public void testAlwaysShowDataRatIcon() {
|
||||
setupDefaultSignal();
|
||||
when(mMockTm.getDataEnabled(mSubId)).thenReturn(false);
|
||||
|
||||
Reference in New Issue
Block a user