@@ -246,7 +246,7 @@ static AdapterInitializationStatus PopulateAdapterInitializationStatus(
246
246
}
247
247
248
248
// Initializes the Google Mobile Ads SDK using the MobileAds.initialize()
249
- // method. The GMA app ID is retreived from the App's android manifest.
249
+ // method. The GMA app ID is retrieved from the App's android manifest.
250
250
Future<AdapterInitializationStatus> InitializeGoogleMobileAds (JNIEnv* env) {
251
251
Future<AdapterInitializationStatus> future_to_return;
252
252
{
@@ -622,7 +622,6 @@ void CallOpenAdInspector(void* data) {
622
622
OpenAdInspectorCallData* call_data =
623
623
reinterpret_cast <OpenAdInspectorCallData*>(data);
624
624
JNIEnv* env = firebase::util::GetThreadsafeJNIEnv (call_data->vm );
625
- bool jni_env_exists = (env != nullptr );
626
625
jlong jlistener = (jlong)call_data->listener ;
627
626
628
627
jobject ad_inspector_helper_ref = env->NewObject (
@@ -653,7 +652,7 @@ void OpenAdInspector(AdParent parent, AdInspectorClosedListener* listener) {
653
652
call_data->ad_parent = env->NewGlobalRef (parent);
654
653
call_data->listener = listener;
655
654
jobject activity = ::firebase::gma::GetActivity ();
656
- util::RunOnMainThread (env, g_activity , CallOpenAdInspector, call_data);
655
+ util::RunOnMainThread (env, activity , CallOpenAdInspector, call_data);
657
656
}
658
657
659
658
void SetIsSameAppKeyEnabled (bool is_enabled) {}
@@ -816,8 +815,9 @@ AdValue::PrecisionType ConvertAndroidPrecisionTypeToCPPPrecisionType(
816
815
default :
817
816
LogWarning (" Could not convert AdValue precisionType: %l" ,
818
817
j_precision_type);
818
+ return AdValue::kAdValuePrecisionUnknown ;
819
819
case 0 :
820
- return AdValue::kdValuePrecisionUnknown ;
820
+ return AdValue::kAdValuePrecisionUnknown ;
821
821
case 1 : // ESTIMATED
822
822
return AdValue::kAdValuePrecisionEstimated ;
823
823
case 2 : // PUBLISHER_PROVIDED
@@ -1216,10 +1216,10 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
1216
1216
ad_size::GetMethodId (
1217
1217
ad_size::kGetCurrentOrientationAnchoredAdaptiveBannerAdSize ),
1218
1218
j_activity, adsize.width ());
1219
-
1219
+ break ;
1220
1220
default :
1221
1221
FIREBASE_ASSERT_MESSAGE (true ,
1222
- " Uknown Anchor Adaptive AdSize Orientation" );
1222
+ " Unknown Anchor Adaptive AdSize Orientation" );
1223
1223
}
1224
1224
break ;
1225
1225
case AdSize::kTypeInlineAdaptive :
@@ -1253,7 +1253,7 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
1253
1253
break ;
1254
1254
default :
1255
1255
FIREBASE_ASSERT_MESSAGE (
1256
- true , " Uknown Inline Adaptive AdSize Orientation" );
1256
+ true , " Unknown Inline Adaptive AdSize Orientation" );
1257
1257
}
1258
1258
}
1259
1259
break ;
@@ -1263,7 +1263,7 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
1263
1263
adsize.width (), adsize.height ());
1264
1264
break ;
1265
1265
default :
1266
- FIREBASE_ASSERT_MESSAGE (true , " Uknown AdSize Type" );
1266
+ FIREBASE_ASSERT_MESSAGE (true , " Unknown AdSize Type" );
1267
1267
}
1268
1268
bool jni_exception = util::CheckAndClearJniExceptions (env);
1269
1269
FIREBASE_ASSERT (!jni_exception);
0 commit comments