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

Commit 06bff8eb authored by petsjonkin's avatar petsjonkin Committed by Oleg Petšjonkin
Browse files

Properly handling case when DDC is null

Test: manualy tested
Bug: b/342553790
Change-Id: I4e3f907257ccd3445d77802778445fc08c572e9a
parent d6004db9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1116,6 +1116,9 @@ public class DisplayModeDirector {
            if (mIsLowPower) {
                for (int i = 0; i < mDisplayDeviceConfigByDisplay.size(); i++) {
                    DisplayDeviceConfig config = mDisplayDeviceConfigByDisplay.valueAt(i);
                    if (config == null) {
                        continue;
                    }
                    List<SupportedModeData> supportedModes = config
                            .getRefreshRateData().lowPowerSupportedModes;
                    mVotesStorage.updateVote(