diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b13be9..e8245c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ - Fixed fab and toolbar issue (#113) +- Fixed links clickable (#114) + **1.5.4.11** - Hiding FABs on scroll. diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt index 197ba64..32fea04 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt @@ -8,6 +8,7 @@ import android.support.design.widget.FloatingActionButton import android.support.v4.widget.NestedScrollView import android.support.v7.app.AppCompatActivity import android.text.Html +import android.text.method.LinkMovementMethod import android.view.MenuItem import android.view.View import apps.amine.bou.readerforselfoss.api.mercury.MercuryApi @@ -117,6 +118,8 @@ class ReaderActivity : AppCompatActivity() { if (mFloatingToolbar.isShowing) mFloatingToolbar.hide() else fab.show() } }) + + content.movementMethod = LinkMovementMethod.getInstance() } private fun getContentFromMercury(customTabsIntent: CustomTabsIntent, prefs: SharedPreferences) { diff --git a/app/src/main/res/layout/activity_reader.xml b/app/src/main/res/layout/activity_reader.xml index bf58c7f..5352676 100644 --- a/app/src/main/res/layout/activity_reader.xml +++ b/app/src/main/res/layout/activity_reader.xml @@ -58,7 +58,6 @@ + app:layout_constraintTop_toBottomOf="@+id/titleView"/>