OSDN Git Service

SystemUI: Display RAT icon in quick setting when data is off
authorWenting Xiong <wenting.xa.xiong@sony.com>
Tue, 5 Dec 2017 05:16:34 +0000 (13:16 +0800)
committerToshiya Ikenaga <Toshiya.Ikenaga@sony.com>
Tue, 5 Dec 2017 21:45:53 +0000 (06:45 +0900)
Introduce implementation to display RAT icon in quick setting
even when data is off.

Test: Test with simulated RIL
Bug: 28805511
Change-Id: I7fabec993c22e3359e36cff2caca9258d79f6273

packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java

index 9d3cf82..9abecda 100644 (file)
@@ -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;