Skip to content

Commit b77ffd0

Browse files
committed
Add extra deprecation warning for location handling
1 parent 98d7af7 commit b77ffd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/medicmobile/webapp/mobile/EmbeddedBrowserActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ private void enableJavascript(XWalkView container) {
261261
* getLocation() is called. However, longer-term we are likely to want a more explicit
262262
* async getLocation() implementation which is triggered only when needed.
263263
* @see https://github.com/medic/medic-projects/issues/2629
264+
* @deprecated @see https://github.com/medic/medic-webapp/issues/3781
264265
*/
266+
@Deprecated
265267
private void enableLocationUpdates() {
266268
if(ContextCompat.checkSelfPermission(this, permission.ACCESS_FINE_LOCATION) != PERMISSION_GRANTED) {
267269
log("Cannot enable location updates: permission ACCESS_FINE_LOCATION not granted.");

0 commit comments

Comments
 (0)