Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
fix(android): fix a crash due to webview triggering focus request
Browse files Browse the repository at this point in the history
  • Loading branch information
manuhook committed Dec 13, 2021
1 parent a9d312b commit 182bb5a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static com.rnadmob.admob.ads.banner.RNAdMobBannerViewManager.EVENT_SIZE_CHANGE;

import android.content.Context;
import android.view.ViewGroup;

import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReadableArray;
Expand Down Expand Up @@ -49,6 +50,7 @@ private void initAdView() {
adView.destroy();
}
adView = new AdManagerAdView(getContext());
adView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
adView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
Expand Down

0 comments on commit 182bb5a

Please sign in to comment.