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

Commit 303b013a authored by Gary Jian's avatar Gary Jian Committed by Android (Google) Code Review
Browse files

Merge "Bug fix for isEmpty() api"

parents 51d602dc 98bb72b5
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -567,14 +567,14 @@ public final class ModemActivityInfo implements Parcelable {
    /** @hide */
    @TestApi
    public boolean isEmpty() {
        boolean isTxPowerEmpty = false;
        boolean isRxPowerEmpty = false;
        boolean isTxPowerEmpty = true;
        boolean isRxPowerEmpty = true;
        for (int i = 0; i < getSpecificInfoLength(); i++) {
            if (mActivityStatsTechSpecificInfo[i].isTxPowerEmpty()) {
                isTxPowerEmpty = true;
            if (!mActivityStatsTechSpecificInfo[i].isTxPowerEmpty()) {
                isTxPowerEmpty = false;
            }
            if (mActivityStatsTechSpecificInfo[i].isRxPowerEmpty()) {
                isRxPowerEmpty = true;
            if (!mActivityStatsTechSpecificInfo[i].isRxPowerEmpty()) {
                isRxPowerEmpty = false;
            }
        }
        return isTxPowerEmpty