From ee52ff2ba6cb6684551180d87728c0fdb31551c4 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Wed, 30 Aug 2017 10:50:42 +0300 Subject: [PATCH] Rolled back TopicAdapter changes, AboutActivity additions --- app/build.gradle | 2 +- .../mthmmy/activities/topic/TopicAdapter.java | 8 ----- app/src/main/res/layout/activity_about.xml | 33 ++++++++++++++++--- app/src/main/res/values/strings.xml | 16 ++++----- 4 files changed, 37 insertions(+), 22 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 571dd5b2..caf6949a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -45,7 +45,7 @@ dependencies { } compile 'com.mikepenz:fontawesome-typeface:4.7.0.0@aar' compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.7' - compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' //Deprecated! + compile 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' //TODO: Deprecated - needs replacement! compile 'me.zhanghai.android.materialprogressbar:library:1.4.1' compile 'com.jakewharton.timber:timber:4.5.1' } diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java index cc5d596b..fd95cc71 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicAdapter.java @@ -483,14 +483,6 @@ class TopicAdapter extends RecyclerView.Adapter { //notifyDataSetChanged(); } - //Fix for WebView not rendering with Hardware Acceleration - @Override - public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) { - super.onViewAttachedToWindow(holder); - if (holder instanceof PostViewHolder) - ((PostViewHolder) holder).post.reload(); - } - @Override public int getItemCount() { return postsList.size(); diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml index 797665a2..306d2b76 100644 --- a/app/src/main/res/layout/activity_about.xml +++ b/app/src/main/res/layout/activity_about.xml @@ -70,20 +70,43 @@ android:textStyle="italic"/> + + + + v%1$s Logo - You should see a funny pic! - - - Remove - Boards - Topics - - Libraries mTHMMY uses the following open-source libraries: Apache v2.0 License libraries The MIT License libraries Contact Do not hesitate to contact us for any matter either by email at thmmynolife@gmail.com, or by joining our discord server at https://discord.gg/CVt3yrn. + Open Source + The source code of mTHMMY can be found on GitLab (https://gitlab.com/ThmmyNoLife/mTHMMY) along with further details of how one can contribute. + You should see a funny pic! + + + Remove + Boards + Topics