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

Commit 51913f9b authored by Fynn Godau's avatar Fynn Godau
Browse files

Fix lite mode enabling all the time

parent b28ed889
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ public final class GoogleMapOptions extends AutoSafeParcelable {
    @SafeParceled(11)
    private boolean rotateGesturesEnabled = true;
    @SafeParceled(12)
    private boolean liteMode = false;
    private int liteMode = 0;
    @SafeParceled(14)
    private boolean mapToobarEnabled = false;
    @SafeParceled(15)
@@ -79,8 +79,9 @@ public final class GoogleMapOptions extends AutoSafeParcelable {
        return boundsForCamera;
    }

    public Boolean getLiteMode() {
        return liteMode;
    public boolean getLiteMode() {
        // Is encoded as `-1` if null, `0` if false, `1` if true. The default is false.
        return liteMode == 1;
    }

    public Boolean getMapToolbarEnabled() {