From 25bc14e91f34255c218b7b21dcf2752759c86ae9 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 21 May 2018 19:21:38 -0700 Subject: [PATCH] Improve document for Location#setExtras(Bundle). Bug: 69682430 Test: it compiles Change-Id: I4e2d0ab05faa8cd8c08cd19b130a1022ae1068f0 --- location/java/android/location/Location.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/location/java/android/location/Location.java b/location/java/android/location/Location.java index 703f2dc082ceb..684cafa14005c 100644 --- a/location/java/android/location/Location.java +++ b/location/java/android/location/Location.java @@ -1033,6 +1033,9 @@ public class Location implements Parcelable { /** * Sets the extra information associated with this fix to the * given Bundle. + * + *

Note this stores a copy of the given extras, so any changes to extras after calling this + * method won't be reflected in the location bundle. */ public void setExtras(Bundle extras) { mExtras = (extras == null) ? null : new Bundle(extras);