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 committed Jan 24, 2022
1 parent 607fea0 commit e39a5fd
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 e39a5fd

Please sign in to comment.