Update app context in code snippet bug: 28842396 am: 056df25179 am: 0fc19538cf am: cca8eba82d am: d24ad86909 am: 664446a34c

am: 441247b832

* commit '441247b8322b136f534ca20029b1e4d2af2e9cb7':
  Update app context in code snippet bug: 28842396

Change-Id: I02f0ef1717bdd0597f63b30aa5b414673099582c
This commit is contained in:
smain@google.com
2016-05-18 22:23:06 +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).