Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
Use custom html parser
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Oct 15, 2015
1 parent 8656139 commit b3ba2c2
Show file tree
Hide file tree
Showing 13 changed files with 1,068 additions and 9 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ dependencies {
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.alibaba:fastjson:1.1.45.android'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'org.ccil.cowan.tagsoup:tagsoup:1.2.1'
compile 'org.jsoup:jsoup:1.8.3'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import android.os.AsyncTask;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.NotificationCompat;
import android.text.Html;
import android.widget.Toast;

import com.hippo.network.DownloadClient;
Expand All @@ -37,6 +36,7 @@
import com.hippo.nimingban.client.data.DiscUrl;
import com.hippo.nimingban.client.data.UpdateStatus;
import com.hippo.nimingban.util.Settings;
import com.hippo.text.Html;
import com.hippo.unifile.UniFile;
import com.hippo.util.TextUtils2;
import com.hippo.util.Timer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import android.graphics.Color;
import android.os.Parcel;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
Expand All @@ -29,6 +28,7 @@
import com.hippo.nimingban.client.data.Post;
import com.hippo.nimingban.client.data.Reply;
import com.hippo.nimingban.client.data.Site;
import com.hippo.text.Html;

public class ACFeed extends Post {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Parcel;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.SpannableStringBuilder;
Expand All @@ -35,6 +34,7 @@
import com.hippo.nimingban.client.data.Post;
import com.hippo.nimingban.client.data.Reply;
import com.hippo.nimingban.client.data.Site;
import com.hippo.text.Html;
import com.hippo.yorozuya.NumberUtils;

import java.text.ParseException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import android.graphics.Color;
import android.os.Parcel;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
Expand All @@ -28,6 +27,7 @@
import com.hippo.nimingban.client.ac.ACUrl;
import com.hippo.nimingban.client.data.Reply;
import com.hippo.nimingban.client.data.Site;
import com.hippo.text.Html;

public class ACReference extends Reply {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import android.graphics.Color;
import android.os.Parcel;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
Expand All @@ -28,6 +27,7 @@
import com.hippo.nimingban.client.ac.ACUrl;
import com.hippo.nimingban.client.data.Reply;
import com.hippo.nimingban.client.data.Site;
import com.hippo.text.Html;

public class ACReply extends Reply {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
package com.hippo.nimingban.client.ac.data;

import android.os.Parcel;
import android.text.Html;
import android.text.TextUtils;

import com.hippo.nimingban.client.ac.ACUrl;
import com.hippo.nimingban.client.data.Reply;
import com.hippo.nimingban.client.data.Site;
import com.hippo.text.Html;

public class ACSearchItem extends Reply {

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/hippo/nimingban/ui/ListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.support.v7.widget.Toolbar;
import android.text.Html;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.Spanned;
Expand Down Expand Up @@ -87,6 +86,7 @@
import com.hippo.nimingban.widget.LoadImageView;
import com.hippo.nimingban.widget.RightDrawer;
import com.hippo.rippleold.RippleSalon;
import com.hippo.text.Html;
import com.hippo.text.URLImageGetter;
import com.hippo.unifile.UniFile;
import com.hippo.util.ActivityHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.support.v7.app.AlertDialog;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.MenuItem;
Expand All @@ -63,6 +62,7 @@
import com.hippo.nimingban.util.ReadableTime;
import com.hippo.nimingban.util.Settings;
import com.hippo.preference.FixedSwitchPreference;
import com.hippo.text.Html;
import com.hippo.unifile.UniFile;
import com.hippo.util.ActivityHelper;
import com.hippo.widget.Slider;
Expand Down
Loading

0 comments on commit b3ba2c2

Please sign in to comment.