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

Commit 7cc4b011 authored by Michael Wright's avatar Michael Wright
Browse files

Use a method reference in place of a lambda.

It just shrinks the syntatic noise, making it easier to read.

Bug: 342006701
Test: compile
Change-Id: Ia45073f09a55346930a32078ae33d1dfdfa690df
parent cd3e757b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1164,9 +1164,7 @@ public final class DisplayManagerService extends SystemService {
                device.setUserPreferredDisplayModeLocked(mode);
            });
        } else {
            mLogicalDisplayMapper.forEachLocked((LogicalDisplay display) -> {
                configurePreferredDisplayModeLocked(display);
            });
            mLogicalDisplayMapper.forEachLocked(this::configurePreferredDisplayModeLocked);
        }
    }