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

Commit a4570afa authored by Nathan Harold's avatar Nathan Harold Committed by Automerger Merge Worker
Browse files

Merge "Deprecate CellLocation#requestLocationUpdate" am: 277f52a0 am: 3153f5ef am: ad12e8d8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1355809

Change-Id: Ia3400cc40de7e29c8e7c35714ea0502a39ab7a1f
parents 3f8242be ad12e8d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -47004,7 +47004,7 @@ package android.telephony {
  public abstract class CellLocation {
    ctor public CellLocation();
    method public static android.telephony.CellLocation getEmpty();
    method public static void requestLocationUpdate();
    method @Deprecated public static void requestLocationUpdate();
  }
  public abstract class CellSignalStrength {
+1 −1
Original line number Diff line number Diff line
@@ -45172,7 +45172,7 @@ package android.telephony {
  public abstract class CellLocation {
    ctor public CellLocation();
    method public static android.telephony.CellLocation getEmpty();
    method public static void requestLocationUpdate();
    method @Deprecated public static void requestLocationUpdate();
  }
  public abstract class CellSignalStrength {
+7 −0
Original line number Diff line number Diff line
@@ -46,7 +46,14 @@ public abstract class CellLocation {
     *
     * Callers wishing to request a single location update should use
     * {@link TelephonyManager#requestCellInfoUpdate}.
     *
     * @deprecated this method has undesirable side-effects, and it calls into the OS without
     * access to a {@link android.content.Context Context}, meaning that certain safety checks and
     * attribution are error-prone. Given that this method has numerous downsides, and given that
     * there are long-available superior alternatives, callers are strongly discouraged from using
     * this method.
     */
    @Deprecated
    public static void requestLocationUpdate() {
        // Since this object doesn't have a context, this is the best we can do.
        final Context appContext = ActivityThread.currentApplication();