Update app context in code snippet bug: 28842396 am: 056df25179

am: 0fc19538cf

* commit '0fc19538cf9e166fe0ccf511c3f6d18b23b9fd90':
  Update app context in code snippet bug: 28842396

Change-Id: I9212c98b926568f2516fd34fb3ba376029bb366b
This commit is contained in:
smain@google.com
2016-05-18 21:55:11 +00:00
committed by android-build-merger

View File

@@ -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).