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

Commit d49828be authored by Fynn Godau's avatar Fynn Godau
Browse files

Circle outline – first implementation

parent e763a60a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
package com.google.android.gms.maps.model;

parcelable Dash;
+3 −0
Original line number Diff line number Diff line
package com.google.android.gms.maps.model;

parcelable Dot;
+3 −0
Original line number Diff line number Diff line
package com.google.android.gms.maps.model;

parcelable Gap;
+3 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ package com.google.android.gms.maps.model.internal;

import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.PatternItem;

interface ICircleDelegate {
    void remove();
@@ -24,8 +25,8 @@ interface ICircleDelegate {
	int hashCodeRemote();
	void setClickable(boolean clickable);
	boolean isClickable();
    void setStrokePattern(IObjectWrapper object);
    IObjectWrapper getStrokePattern();
    void setStrokePattern(in List<PatternItem> items);
    List<PatternItem> getStrokePattern();
    void setTag(IObjectWrapper object);
    IObjectWrapper getTag();
}
+25 −0
Original line number Diff line number Diff line
@@ -22,6 +22,10 @@ import org.microg.gms.common.PublicApi;
import org.microg.safeparcel.AutoSafeParcelable;
import org.microg.safeparcel.SafeParceled;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Defines options for a Circle.
 */
@@ -45,6 +49,8 @@ public class CircleOptions extends AutoSafeParcelable {
    private boolean visible = true;
    @SafeParceled(9)
    private boolean clickable = false;
    @SafeParceled(10)
    private List<PatternItem> strokePattern = null;

    /**
     * Creates circle options.
@@ -239,5 +245,24 @@ public class CircleOptions extends AutoSafeParcelable {
        return this;
    }

    /**
     * Specifies a stroke pattern for the circle's outline. The default stroke pattern is solid, represented by {@code null}.
     *
     * @return this {@link CircleOptions} object with a new stroke pattern set.
     */
    public CircleOptions strokePattern(List<PatternItem> pattern) {
        this.strokePattern = pattern;
        return this;
    }

    /**
     * Gets the stroke pattern set in this {@link CircleOptions} object for the circle's outline.
     *
     * @return the stroke pattern of the circle's outline.
     */
    public List<PatternItem> getStrokePattern() {
        return strokePattern;
    }

    public static Creator<CircleOptions> CREATOR = new AutoCreator<CircleOptions>(CircleOptions.class);
}
Loading