2 次代碼提交 876fdaf9c8 ... da70d742cb

作者 SHA1 備註 提交日期
  Bixilon da70d742cb bump html-textview 2 年之前
  Bixilon 4b5fb3167f fix crash in swipe layout 2 年之前
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      app/build.gradle
  2. 3 1
      app/src/main/java/godau/fynn/dsbdirect/activity/MainActivity.java

+ 1 - 1
app/build.gradle

@@ -78,7 +78,7 @@ dependencies {
     implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
     implementation 'androidx.cardview:cardview:1.0.0'
     implementation 'com.github.MikeOrtiz:TouchImageView:3.0.1'
-    implementation 'org.sufficientlysecure:html-textview:3.6'
+    implementation 'org.sufficientlysecure:html-textview:4.0' // ToDo: This is still only on jcenter!!!
     implementation 'com.github.DASAR:ShiftColorPicker:v0.5'
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
     implementation 'com.squareup.picasso:picasso:2.71828'

+ 3 - 1
app/src/main/java/godau/fynn/dsbdirect/activity/MainActivity.java

@@ -1074,7 +1074,9 @@ public class MainActivity extends AppCompatActivity {
 
         // Reset pagePicker position
         ((HorizontalPicker) findViewById(R.id.page)).setSelectedItem(0);
-        mSwipeLayout.setRefreshing(false);
+        if (mSwipeLayout != null) {
+            mSwipeLayout.setRefreshing(false);
+        }
     }
 
     @Override