@@ -246,7 +246,7 @@ static AdapterInitializationStatus PopulateAdapterInitializationStatus(
246246}
247247
248248// 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.
250250Future<AdapterInitializationStatus> InitializeGoogleMobileAds (JNIEnv* env) {
251251 Future<AdapterInitializationStatus> future_to_return;
252252 {
@@ -622,7 +622,6 @@ void CallOpenAdInspector(void* data) {
622622 OpenAdInspectorCallData* call_data =
623623 reinterpret_cast <OpenAdInspectorCallData*>(data);
624624 JNIEnv* env = firebase::util::GetThreadsafeJNIEnv (call_data->vm );
625- bool jni_env_exists = (env != nullptr );
626625 jlong jlistener = (jlong)call_data->listener ;
627626
628627 jobject ad_inspector_helper_ref = env->NewObject (
@@ -653,7 +652,7 @@ void OpenAdInspector(AdParent parent, AdInspectorClosedListener* listener) {
653652 call_data->ad_parent = env->NewGlobalRef (parent);
654653 call_data->listener = listener;
655654 jobject activity = ::firebase::gma::GetActivity ();
656- util::RunOnMainThread (env, g_activity , CallOpenAdInspector, call_data);
655+ util::RunOnMainThread (env, activity , CallOpenAdInspector, call_data);
657656}
658657
659658void SetIsSameAppKeyEnabled (bool is_enabled) {}
@@ -816,8 +815,9 @@ AdValue::PrecisionType ConvertAndroidPrecisionTypeToCPPPrecisionType(
816815 default :
817816 LogWarning (" Could not convert AdValue precisionType: %l" ,
818817 j_precision_type);
818+ return AdValue::kAdValuePrecisionUnknown ;
819819 case 0 :
820- return AdValue::kdValuePrecisionUnknown ;
820+ return AdValue::kAdValuePrecisionUnknown ;
821821 case 1 : // ESTIMATED
822822 return AdValue::kAdValuePrecisionEstimated ;
823823 case 2 : // PUBLISHER_PROVIDED
@@ -1216,10 +1216,10 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
12161216 ad_size::GetMethodId (
12171217 ad_size::kGetCurrentOrientationAnchoredAdaptiveBannerAdSize ),
12181218 j_activity, adsize.width ());
1219-
1219+ break ;
12201220 default :
12211221 FIREBASE_ASSERT_MESSAGE (true ,
1222- " Uknown Anchor Adaptive AdSize Orientation" );
1222+ " Unknown Anchor Adaptive AdSize Orientation" );
12231223 }
12241224 break ;
12251225 case AdSize::kTypeInlineAdaptive :
@@ -1253,7 +1253,7 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
12531253 break ;
12541254 default :
12551255 FIREBASE_ASSERT_MESSAGE (
1256- true , " Uknown Inline Adaptive AdSize Orientation" );
1256+ true , " Unknown Inline Adaptive AdSize Orientation" );
12571257 }
12581258 }
12591259 break ;
@@ -1263,7 +1263,7 @@ jobject CreateJavaAdSize(JNIEnv* env, jobject j_activity,
12631263 adsize.width (), adsize.height ());
12641264 break ;
12651265 default :
1266- FIREBASE_ASSERT_MESSAGE (true , " Uknown AdSize Type" );
1266+ FIREBASE_ASSERT_MESSAGE (true , " Unknown AdSize Type" );
12671267 }
12681268 bool jni_exception = util::CheckAndClearJniExceptions (env);
12691269 FIREBASE_ASSERT (!jni_exception);
0 commit comments