Skip to content

Commit

Permalink
fix: Block descendant focus requests
Browse files Browse the repository at this point in the history
* Block descendant focus requests

See discussion facebook/react-native#32649 (comment)
  • Loading branch information
TaylorDale authored and mikehardy committed Feb 7, 2022
1 parent eb1b54e commit 835bdec
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*
*/

import android.view.ViewGroup;
import androidx.annotation.NonNull;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReadableMap;
Expand Down Expand Up @@ -117,6 +118,7 @@ public void setSize(ReactViewGroup reactViewGroup, String value) {
private void setAdListener(ReactViewGroup reactViewGroup) {
final AdView adView = getAdView(reactViewGroup);

adView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
adView.setAdListener(
new AdListener() {
@Override
Expand Down

0 comments on commit 835bdec

Please sign in to comment.