From 4530c91952c761a2f2f70624c5bde975f3320802 Mon Sep 17 00:00:00 2001 From: Soren Stoutner <soren@stoutner.com> Date: Fri, 26 Mar 2021 12:29:38 -0700 Subject: [PATCH] Fix the `adSize` missing error on first launch of the free flavor. https://redmine.stoutner.com/issues/675 --- app/src/free/res/layout/adview.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/free/res/layout/adview.xml b/app/src/free/res/layout/adview.xml index d573bda8..f0e48252 100644 --- a/app/src/free/res/layout/adview.xml +++ b/app/src/free/res/layout/adview.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- - Copyright © 2016-2017,2019-2020 Soren Stoutner <soren@stoutner.com>. + Copyright © 2016-2017,2019-2021 Soren Stoutner <soren@stoutner.com>. This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>. @@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License along with Privacy Browser. If not, see <http://www.gnu.org/licenses/>. --> +<!-- The ad size must be specified below to prevent an error being displayed on first app launch. <https://redmine.stoutner.com/issues/675> --> <com.google.android.gms.ads.AdView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" @@ -25,4 +26,5 @@ android:layout_height="wrap_content" android:layout_width="match_parent" android:layout_alignParentBottom="true" - ads:adUnitId="@string/ad_unit_id" /> \ No newline at end of file + ads:adUnitId="@string/ad_unit_id" + ads:adSize="SMART_BANNER" /> \ No newline at end of file -- 2.47.2