Browse Source

Rolled back jsoup

pull/24/head
Ezerous 7 years ago
parent
commit
9e59917a39
  1. 2
      app/build.gradle
  2. 2
      app/src/main/assets/mit_libraries.html
  3. 4
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

2
app/build.gradle

@ -37,7 +37,7 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation 'org.jsoup:jsoup:1.11.1'
implementation 'org.jsoup:jsoup:1.10.3'
implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.2'
implementation("com.mikepenz:materialdrawer:6.0.1@aar") {

2
app/src/main/assets/mit_libraries.html

@ -39,7 +39,7 @@
<body>
<ul>
<li>
<h5><a href="https://jsoup.org//">jsoup</a>&nbsp;v1.11.1 (Copyright ©2009-2017, Jonathan Hedley &lt;jonathan@hedley.net&gt;)</h5>
<h5><a href="https://jsoup.org//">jsoup</a>&nbsp;v1.10.3 (Copyright ©2009-2017, Jonathan Hedley &lt;jonathan@hedley.net&gt;)</h5>
</li>
<li>
<h5><a href="https://github.com/koral--/android-gif-drawable">android-gif-drawable</a>&nbsp;v1.2.8 (Copyright ©2013 -2017 Karol Wrótniak, Droids on Roids)</h5>

4
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java

@ -691,10 +691,10 @@ public class TopicActivity extends BaseActivity {
parsedTitle = topic.select("td[id=top_subject]").first().text();
if (parsedTitle.contains("Topic:")) {
parsedTitle = parsedTitle.substring(parsedTitle.indexOf("Topic:") + 7
, parsedTitle.indexOf("(Read") - 1);
, parsedTitle.indexOf("(Read") - 2);
} else {
parsedTitle = parsedTitle.substring(parsedTitle.indexOf("Θέμα:") + 6
, parsedTitle.indexOf("(Αναγνώστηκε") - 1);
, parsedTitle.indexOf("(Αναγνώστηκε") - 2);
Timber.d("Parsed title: %s", parsedTitle);
}
}

Loading…
Cancel
Save