]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/free/res/layout/adview.xml
Fix the `adSize` missing error on first launch of the free flavor. https://redmine...
[PrivacyBrowserAndroid.git] / app / src / free / res / layout / adview.xml
index d573bda842e7db5d318a4d8c2b81566f0beaa5ff..f0e482522d7f1f2109f81dc97f4f76c1a1137330 100644 (file)
@@ -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