Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cca8eba8 authored by smain@google.com's avatar smain@google.com Committed by android-build-merger
Browse files

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

am: 0fc19538

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

Change-Id: I9212c98b926568f2516fd34fb3ba376029bb366b
parents 890101cc 0fc19538
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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).