Browse Source

Webview fix attempt and other tweaks

pull/24/head
Ezerous 8 years ago
parent
commit
5d8e6aa652
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java
  2. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java
  3. 2
      app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

2
app/src/main/java/gr/thmmy/mthmmy/activities/main/MainActivity.java

@ -164,7 +164,7 @@ public class MainActivity extends BaseActivity implements RecentFragment.RecentF
public CharSequence getPageTitle(int position) { public CharSequence getPageTitle(int position) {
switch (position) { switch (position) {
case 0: case 0:
return "RECENT POSTS"; return "RECENT";
case 1: case 1:
return "FORUM"; return "FORUM";
case 2: case 2:

2
app/src/main/java/gr/thmmy/mthmmy/activities/main/unread/UnreadFragment.java

@ -186,7 +186,7 @@ public class UnreadFragment extends BaseFragment {
if (message.contains("No messages")) { //It's english if (message.contains("No messages")) { //It's english
message = "No unread posts!"; message = "No unread posts!";
} else { //It's greek } else { //It's greek
message = "Δεν υπάρχουν μη διαβασμένα μυνήματα!"; message = "Δεν υπάρχουν μη διαβασμένα μηνύματα!";
} }
topicSummaries.add(new TopicSummary(null, null, null, message)); topicSummaries.add(new TopicSummary(null, null, null, message));
} }

2
app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java

@ -178,6 +178,8 @@ class TopicAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
final Post currentPost = postsList.get(position); final Post currentPost = postsList.get(position);
final PostViewHolder holder = (PostViewHolder) currentHolder; final PostViewHolder holder = (PostViewHolder) currentHolder;
holder.setIsRecyclable(false);
//Post's WebView parameters //Post's WebView parameters
holder.post.setClickable(true); holder.post.setClickable(true);
holder.post.setWebViewClient(new LinkLauncher()); holder.post.setWebViewClient(new LinkLauncher());

Loading…
Cancel
Save