Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96fe883d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Avoid build break while handling getModemActivityInfoResponse"

parents f5ad418f f11a8a2f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -104,10 +104,11 @@ public class ModemResponse extends IRadioModemResponse.Stub {
                final int sleepModeTimeMs = activityInfo.sleepModeTimeMs;
                final int idleModeTimeMs = activityInfo.idleModeTimeMs;
                int [] txModeTimeMs = new int[ModemActivityInfo.getNumTxPowerLevels()];
                // TODO: update the function as per the new API introduced in Android T
                for (int i = 0; i < ModemActivityInfo.getNumTxPowerLevels(); i++) {
                    txModeTimeMs[i] = activityInfo.txmModetimeMs[i];
                    txModeTimeMs[i] = activityInfo.techSpecificInfo[0].txmModetimeMs[i];
                }
                final int rxModeTimeMs = activityInfo.rxModeTimeMs;
                final int rxModeTimeMs = activityInfo.techSpecificInfo[0].rxModeTimeMs;
                ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), sleepModeTimeMs,
                        idleModeTimeMs, txModeTimeMs, rxModeTimeMs);
            } else {