Update app context in code snippet bug: 28842396 am: 056df25179 am: 0fc19538cf am: cca8eba82d am: d24ad86909
am: 664446a34c
* commit '664446a34c1887c743060c8caa406a97923c483d':
Update app context in code snippet bug: 28842396
Change-Id: Id6cb8c5d2da687dc4a75a1b401880d1ac03b05db
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