Update app context in code snippet bug: 28842396
am: 056df25179
* commit '056df25179e2a6621f9abeb5cdf749387a489751':
Update app context in code snippet bug: 28842396
Change-Id: I302124bb72a8162dbc0c7b1fa96c14657a86c97c
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user