Browse Source

migrate to ReactiveWebView in shoutbox

pull/70/head
Thodoris Tyrovouzis 5 years ago
parent
commit
ec1cad5ec2
  1. 3
      app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutAdapter.java
  2. 2
      app/src/main/res/layout/fragment_shoutbox_shout_row.xml

3
app/src/main/java/gr/thmmy/mthmmy/activities/shoutbox/ShoutAdapter.java

@ -24,6 +24,7 @@ import gr.thmmy.mthmmy.activities.topic.TopicActivity;
import gr.thmmy.mthmmy.model.Shout;
import gr.thmmy.mthmmy.model.ThmmyPage;
import gr.thmmy.mthmmy.views.CustomRecyclerView;
import gr.thmmy.mthmmy.views.ReactiveWebView;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static gr.thmmy.mthmmy.activities.board.BoardActivity.BUNDLE_BOARD_TITLE;
@ -85,7 +86,7 @@ public class ShoutAdapter extends CustomRecyclerView.Adapter<ShoutAdapter.ShoutV
static class ShoutViewHolder extends CustomRecyclerView.ViewHolder {
TextView author, dateTime;
WebView shoutContent;
ReactiveWebView shoutContent;
ShoutViewHolder(@NonNull View itemView) {
super(itemView);

2
app/src/main/res/layout/fragment_shoutbox_shout_row.xml

@ -50,7 +50,7 @@
android:layout_marginBottom="9dp"
android:background="@color/divider" />
<WebView
<gr.thmmy.mthmmy.views.ReactiveWebView
android:id="@+id/shout_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"

Loading…
Cancel
Save