From 056df25179e2a6621f9abeb5cdf749387a489751 Mon Sep 17 00:00:00 2001 From: "smain@google.com" Date: Wed, 18 May 2016 14:35:51 -0700 Subject: [PATCH] Update app context in code snippet bug: 28842396 Change-Id: I306ba2d3f7ccb1f547caa46e038c1d3faaccab26 --- docs/html/google/play-services/id.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/html/google/play-services/id.jd b/docs/html/google/play-services/id.jd index f95ebef2c1d3a..2f0664c4fed49 100644 --- a/docs/html/google/play-services/id.jd +++ b/docs/html/google/play-services/id.jd @@ -178,7 +178,7 @@ import java.io.IOException; public void getIdThread() { Info adInfo = null; try { - adInfo = AdvertisingIdClient.getAdvertisingIdInfo(mContext); + adInfo = AdvertisingIdClient.getAdvertisingIdInfo(mContext.getApplicationContext()); } catch (IOException e) { // Unrecoverable error connecting to Google Play services (e.g., // the old version of the service doesn't support getting AdvertisingId).