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

Commit 4542a9eb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Improved debug message"

parents 63230ed8 3b6b57b6
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.telephony;

import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.os.Build;
import android.text.TextUtils;

import java.util.ArrayList;
@@ -257,6 +258,15 @@ public class CbGeoUtils {
                return new Point(x - p.x, y - p.y);
            }
        }

        @Override
        public String toString() {
            String str = "Polygon: ";
            if (Build.IS_DEBUGGABLE) {
                str += mVertices;
            }
            return str;
        }
    }

    /**
@@ -284,6 +294,16 @@ public class CbGeoUtils {
        public boolean contains(LatLng p) {
            return mCenter.distance(p) <= mRadiusMeter;
        }

        @Override
        public String toString() {
            String str = "Circle: ";
            if (Build.IS_DEBUGGABLE) {
                str += mCenter + ", radius = " + mRadiusMeter;
            }

            return str;
        }
    }

    /**