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

am: d24ad86909

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

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

View File

@@ -178,7 +178,7 @@ import java.io.IOException;
public void getIdThread() { public void getIdThread() {
Info adInfo = null; Info adInfo = null;
try { try {
adInfo = AdvertisingIdClient.getAdvertisingIdInfo(mContext); adInfo = AdvertisingIdClient.getAdvertisingIdInfo(mContext.getApplicationContext());
} catch (IOException e) { } catch (IOException e) {
// Unrecoverable error connecting to Google Play services (e.g., // Unrecoverable error connecting to Google Play services (e.g.,
// the old version of the service doesn't support getting AdvertisingId). // the old version of the service doesn't support getting AdvertisingId).