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

Commit 0fc19538 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

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

Change-Id: I302124bb72a8162dbc0c7b1fa96c14657a86c97c
parents 26aea138 056df251
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).