fix: app crash when a timer callback throws exception on main thread; feat: umeng ads

This commit is contained in:
hyb1996
2018-09-15 14:04:01 +08:00
parent 02c64cd7b1
commit a3ae309742
15 changed files with 129 additions and 161 deletions

View File

@@ -13,6 +13,10 @@
android:layout_height="0dp"
android:layout_weight="1">
<com.xcy8.ads.view.FullScreenAdView
android:id="@+id/full_screen_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>

View File

@@ -387,4 +387,6 @@
<string name="text_class_or_package_name">类/包名</string>
<string name="text_view_docs">查看文档</string>
<string name="text_en_import">import</string>
<string name="key_ad_type">key_ad_type</string>
<string name="text_ad_type_settings">广告类型设置</string>
</resources>

View File

@@ -93,9 +93,13 @@
<com.stardust.theme.preference.ThemeColorPreferenceCategory
android:layout="@layout/preference_category_custom"
android:title="@string/text_ad">
<Preference
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:defaultValue="0"
android:entries="@array/ad_types_keys"
android:entryValues="@array/ad_types_values"
android:key="@string/key_ad_type"
android:layout="@layout/preference_custom"
android:title="@string/show_ad"
android:title="@string/text_ad_type_settings"
/>
<com.afollestad.materialdialogs.prefs.MaterialListPreference
android:defaultValue="@string/text_default"