Skip to content

Commit

Permalink
2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zayvius-dev committed May 21, 2022
1 parent b0b50a8 commit 5697b19
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ protected static void populateNativeAdView_disable_click(NativeAd nativeAd, Nati
adView.setStarRatingView(adView.findViewById(R.id.ad_stars));
adView.setStoreView(adView.findViewById(R.id.ad_store));
adView.setAdvertiserView(adView.findViewById(R.id.ad_advertiser));
adView.findViewById(R.id.ad_media).setEnabled(false);
adView.findViewById(R.id.ad_headline).setEnabled(false);
adView.findViewById(R.id.ad_body).setEnabled(false);
adView.findViewById(R.id.ad_call_to_action).setEnabled(false);
adView.findViewById(R.id.ad_app_icon).setEnabled(false);
adView.findViewById(R.id.ad_price).setEnabled(false);
adView.findViewById(R.id.ad_stars).setEnabled(false);
adView.findViewById(R.id.ad_store).setEnabled(false);
adView.findViewById(R.id.ad_advertiser).setEnabled(false);
adView.findViewById(R.id.ad_media).setClickable(false);
adView.findViewById(R.id.ad_headline).setClickable(false);
adView.findViewById(R.id.ad_body).setClickable(false);
adView.findViewById(R.id.ad_call_to_action).setClickable(false);
adView.findViewById(R.id.ad_app_icon).setClickable(false);
adView.findViewById(R.id.ad_price).setClickable(false);
adView.findViewById(R.id.ad_stars).setClickable(false);
adView.findViewById(R.id.ad_store).setClickable(false);
adView.findViewById(R.id.ad_advertiser).setClickable(false);

// The headline and mediaContent are guaranteed to be in every NativeAd.
((TextView) Objects.requireNonNull(adView.getHeadlineView())).setText(nativeAd.getHeadline());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ protected static void populateNativeAdView_disable_click(NativeAd nativeAd, Nati
adView.setBodyView(adView.findViewById(R.id.ad_body));
adView.setCallToActionView(adView.findViewById(R.id.ad_call_to_action));
adView.setIconView(adView.findViewById(R.id.ad_app_icon));
adView.findViewById(R.id.ad_headline).setEnabled(false);
adView.findViewById(R.id.ad_body).setEnabled(false);
adView.findViewById(R.id.ad_call_to_action).setEnabled(false);
adView.findViewById(R.id.ad_app_icon).setEnabled(false);
adView.findViewById(R.id.ad_headline).setClickable(false);
adView.findViewById(R.id.ad_body).setClickable(false);
adView.findViewById(R.id.ad_call_to_action).setClickable(false);
adView.findViewById(R.id.ad_app_icon).setClickable(false);

// The headline and mediaContent are guaranteed to be in every NativeAd.
((TextView) Objects.requireNonNull(adView.getHeadlineView())).setText(nativeAd.getHeadline());
Expand Down
4 changes: 0 additions & 4 deletions zs-ads/src/main/res/layout/ad_unified.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@

<TextView
android:id="@+id/ad_advertiser"
android:textColor="@color/black"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="bottom"
Expand All @@ -83,7 +82,6 @@

<TextView
android:id="@+id/ad_body"
android:textColor="@color/black"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="20dp"
Expand All @@ -105,7 +103,6 @@
android:paddingTop="10dp">

<TextView
android:textColor="@color/black"
android:id="@+id/ad_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -116,7 +113,6 @@
android:textSize="12sp" />

<TextView
android:textColor="@color/black"
android:id="@+id/ad_store"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
1 change: 0 additions & 1 deletion zs-ads/src/main/res/layout/nativeadmob_small.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
android:textStyle="bold" />

<TextView
android:textColor="@color/black"
android:id="@+id/ad_body"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 5697b19

Please sign in to comment.