瀏覽代碼

1.添加积分规则
2.添加分享文章提示
3.修复5.1手机打开webview报错bug
4.修复recyclerview在加载更多时,点击会调用多次接口bug
5.升级gradle版本至3.5.1,SDK提升至29

hegj 5 年之前
父節點
當前提交
fbdc47dc7a

+ 2 - 2
app/build.gradle

@@ -60,7 +60,7 @@ android {
         release {
             buildConfigField "boolean", "LOG_DEBUG",  "false"
             buildConfigField "boolean", "USE_CANARY", "false"
-            buildConfigField "String", "BUGLY_KE", '"5a5f6366fc"'
+            buildConfigField "String", "BUGLY_KE", '"xxxxx"'
             minifyEnabled true//开启混淆
             shrinkResources true
             zipAlignEnabled true//去除无用资源
@@ -88,7 +88,7 @@ dependencies {
     implementation fileTree(include: ['*.jar'], dir: 'libs')
     //androidX基础库
     implementation "androidx.appcompat:appcompat:1.1.0"
-    implementation 'com.google.android.material:material:1.1.0-beta01'
+    implementation 'com.google.android.material:material:1.2.0-alpha01'
     implementation "androidx.constraintlayout:constraintlayout:1.1.3"
     implementation "androidx.preference:preference:1.1.0"
     implementation "androidx.cardview:cardview:1.0.0"

+ 1 - 3
app/src/main/java/me/hegj/wandroid/app/event/SettingChangeEvent.kt

@@ -5,6 +5,4 @@ package me.hegj.wandroid.app.event
   * @Author:         hegaojian
   * @CreateDate:     2019/9/2 21:17
  */
-class SettingChangeEvent :BaseEvent{
-    constructor() : super()
-}
+class SettingChangeEvent :BaseEvent()

+ 2 - 2
app/src/main/java/me/hegj/wandroid/app/utils/SpaceItemDecoration.kt

@@ -29,11 +29,11 @@ class SpaceItemDecoration//leftRight为横向间的距离 topBottom为纵向间
             outRect.right = leftRight
         } else {
             //最后一项需要right
-            if (parent.getChildAdapterPosition(view) == layoutManager.itemCount - 1) {
+            if (parent.getChildAdapterPosition(view) != layoutManager.itemCount - 1) {
                 outRect.right = leftRight
             }
             outRect.top = topBottom
-            outRect.left = leftRight
+            outRect.left = 0
             outRect.bottom = topBottom
         }
     }