diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e85839..e5d4893 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,20 @@ **1.5.5.x (didn't last long) AND 1.5.6.x** -- Completed Dutch, Indonesian and Portuguese translations ! - -- Fixed #142, #144, #147. - -- Added an animation to the viewpager. - -- Changed versions handling. - +- Added an option to use a webview in the article viewer (see #149) - Toolbar in reader activity. - Marking items as read on scroll (with settings to enable/disable). - Swapped the title and subtitle in the article viewer. +- Added an animation to the viewpager. + +- Completed Dutch, Indonesian and Portuguese translations ! + +- Fixed #142, #144, #147. + +- Changed versions handling. + **1.5.4.22** - You can now scroll through the loaded articles ! diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 051fa71..0889b7b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -71,6 +71,12 @@ + + + + \ No newline at end of file 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 b1fc467..f087700 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt @@ -27,6 +27,8 @@ class ReaderActivity : AppCompatActivity() { private var markOnScroll: Boolean = false + private var useWebview: Boolean = false + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Scoop.getInstance().apply(this) @@ -42,6 +44,8 @@ class ReaderActivity : AppCompatActivity() { val debugReadingItems = sharedPref.getBoolean("read_debug", false) val userIdentifier = sharedPref.getString("unique_id", "") markOnScroll = sharedPref.getBoolean("mark_on_scroll", false) + useWebview = sharedPref.getBoolean("prefer_webview_in_article_viewer", false) + if (allItems.isEmpty()) { Crashlytics.setUserIdentifier(userIdentifier) @@ -148,7 +152,7 @@ class ReaderActivity : AppCompatActivity() { } override fun getItem(position: Int): ArticleFragment { - return ArticleFragment.newInstance(position, allItems) + return ArticleFragment.newInstance(position, allItems, useWebview) } } diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt index 3f6cd77..51c1d42 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/fragments/ArticleFragment.kt @@ -1,6 +1,7 @@ package apps.amine.bou.readerforselfoss.fragments import android.content.SharedPreferences +import android.os.Build import android.os.Bundle import android.preference.PreferenceManager import android.support.customtabs.CustomTabsIntent @@ -9,10 +10,13 @@ import android.support.v4.app.Fragment import android.support.v4.widget.NestedScrollView import android.text.Html import android.text.method.LinkMovementMethod +import android.util.Log +import android.util.TypedValue import android.view.LayoutInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup +import android.webkit.WebSettings import apps.amine.bou.readerforselfoss.BuildConfig import apps.amine.bou.readerforselfoss.R import apps.amine.bou.readerforselfoss.api.mercury.MercuryApi @@ -28,19 +32,16 @@ import com.bumptech.glide.Glide import com.bumptech.glide.request.RequestOptions import com.crashlytics.android.Crashlytics import com.github.rubensousa.floatingtoolbar.FloatingToolbar +import kotlinx.android.synthetic.main.fragment_article.view.* import org.sufficientlysecure.htmltextview.HtmlHttpImageGetter import retrofit2.Call import retrofit2.Callback import retrofit2.Response - -import kotlinx.android.synthetic.main.fragment_article.view.* - class ArticleFragment : Fragment() { private lateinit var pageNumber: Number private lateinit var allItems: ArrayList private lateinit var mCustomTabActivityHelper: CustomTabActivityHelper - //private lateinit var content: HtmlTextView private lateinit var url: String private lateinit var contentText: String private lateinit var contentSource: String @@ -48,6 +49,8 @@ class ArticleFragment : Fragment() { private lateinit var contentTitle: String private lateinit var fab: FloatingActionButton + private var useWebview: Boolean = false + override fun onStop() { super.onStop() mCustomTabActivityHelper.unbindCustomTabsService(activity) @@ -57,6 +60,7 @@ class ArticleFragment : Fragment() { super.onCreate(savedInstanceState) pageNumber = arguments!!.getInt(ARG_POSITION) allItems = arguments!!.getParcelableArrayList(ARG_ITEMS) + useWebview = arguments!!.getBoolean(ARG_WEBVIEW) } private lateinit var rootView: ViewGroup @@ -85,27 +89,29 @@ class ArticleFragment : Fragment() { val prefs = PreferenceManager.getDefaultSharedPreferences(activity) - mFloatingToolbar.setClickListener(object : FloatingToolbar.ItemClickListener { - override fun onItemClick(item: MenuItem) { - when (item.itemId) { - R.id.more_action -> getContentFromMercury(customTabsIntent, prefs) - R.id.share_action -> activity!!.shareLink(url) - R.id.open_action -> activity!!.openItemUrl( - allItems, - pageNumber.toInt(), - url, - customTabsIntent, - false, - false, - activity!! - ) - else -> Unit - } - } + mFloatingToolbar.setClickListener( + object : FloatingToolbar.ItemClickListener { + override fun onItemClick(item: MenuItem) { + when (item.itemId) { + R.id.more_action -> getContentFromMercury(customTabsIntent, prefs) + R.id.share_action -> activity!!.shareLink(url) + R.id.open_action -> activity!!.openItemUrl( + allItems, + pageNumber.toInt(), + url, + customTabsIntent, + false, + false, + activity!! + ) + else -> Unit + } + } - override fun onItemLongClick(item: MenuItem?) { - } - }) + override fun onItemLongClick(item: MenuItem?) { + } + } + ) if (contentText.isEmptyOrNullOrNullString()) { @@ -113,7 +119,12 @@ class ArticleFragment : Fragment() { } else { rootView.source.text = contentSource rootView.titleView.text = contentTitle - tryToHandleHtml(contentText, customTabsIntent, prefs) + + if (!useWebview) { + htmlToTextview(contentText, customTabsIntent, prefs) + } else { + htmlToWebview(contentText) + } if (!contentImage.isEmptyOrNullOrNullString()) { rootView.imageView.visibility = View.VISIBLE @@ -138,7 +149,9 @@ class ArticleFragment : Fragment() { } ) - rootView.content.movementMethod = LinkMovementMethod.getInstance() + if (!useWebview) { + rootView.content.movementMethod = LinkMovementMethod.getInstance() + } return rootView } @@ -153,56 +166,69 @@ class ArticleFragment : Fragment() { prefs.getBoolean("should_log_everything", false) ) - parser.parseUrl(url).enqueue(object : Callback { - override fun onResponse( - call: Call, - response: Response - ) { - if (response.body() != null && response.body()!!.content != null && response.body()!!.content.isNotEmpty()) { - rootView.source.text = response.body()!!.domain - rootView.titleView.text = response.body()!!.title - url = response.body()!!.url + parser.parseUrl(url).enqueue( + object : Callback { + override fun onResponse( + call: Call, + response: Response + ) { + if (response.body() != null && response.body()!!.content != null && response.body()!!.content.isNotEmpty()) { + rootView.source.text = response.body()!!.domain + rootView.titleView.text = response.body()!!.title + url = response.body()!!.url - if (response.body()!!.content != null && !response.body()!!.content.isEmpty()) { - tryToHandleHtml(response.body()!!.content, customTabsIntent, prefs) + if (response.body()!!.content != null && !response.body()!!.content.isEmpty()) { + if (!useWebview) { + htmlToTextview( + response.body()!!.content, + customTabsIntent, + prefs + ) + } else { + htmlToWebview(response.body()!!.content) + } + } + + if (response.body()!!.lead_image_url != null && !response.body()!!.lead_image_url.isEmpty()) { + rootView.imageView.visibility = View.VISIBLE + Glide + .with(activity!!.baseContext) + .asBitmap() + .load(response.body()!!.lead_image_url) + .apply(RequestOptions.fitCenterTransform()) + .into(rootView.imageView) + } else { + rootView.imageView.visibility = View.GONE + } + + rootView.nestedScrollView.scrollTo(0, 0) + + rootView.progressBar.visibility = View.GONE + } else { + openInBrowserAfterFailing(customTabsIntent) + } } - if (response.body()!!.lead_image_url != null && !response.body()!!.lead_image_url.isEmpty()) { - rootView.imageView.visibility = View.VISIBLE - Glide - .with(activity!!.baseContext) - .asBitmap() - .load(response.body()!!.lead_image_url) - .apply(RequestOptions.fitCenterTransform()) - .into(rootView.imageView) - } else { - rootView.imageView.visibility = View.GONE - } - - rootView.nestedScrollView.scrollTo(0, 0) - - rootView.progressBar.visibility = View.GONE - } else { - openInBrowserAfterFailing(customTabsIntent) + override fun onFailure( + call: Call, + t: Throwable + ) = openInBrowserAfterFailing(customTabsIntent) } - } - - override fun onFailure( - call: Call, - t: Throwable - ) = openInBrowserAfterFailing(customTabsIntent) - }) + ) } - private fun tryToHandleHtml( + private fun htmlToTextview( c: String, customTabsIntent: CustomTabsIntent, prefs: SharedPreferences ) { try { - rootView.content.text = Html.fromHtml(c, HtmlHttpImageGetter(rootView.content, null, true), null) - - //content.setHtml(response.body()!!.content, HtmlHttpImageGetter(content, null, true)) + rootView.content.visibility = View.VISIBLE + rootView.content.text = Html.fromHtml( + c, + HtmlHttpImageGetter(rootView.content, null, true), + null + ) } catch (e: Exception) { Crashlytics.setUserIdentifier(prefs.getString("unique_id", "")) Crashlytics.log(100, "CANT_TRANSFORM_TO_HTML", e.message) @@ -211,6 +237,42 @@ class ArticleFragment : Fragment() { } } + private fun htmlToWebview(c: String) { + val attrBackground = TypedValue() + activity!!.baseContext.theme.resolveAttribute( + android.R.attr.colorBackground, + attrBackground, + true + ) + + val defaultColor = TypedValue() + activity!!.baseContext.theme.resolveAttribute( + android.R.attr.colorAccent, + defaultColor, + true + ) + val accentColor = fab.backgroundTintList?.defaultColor ?: defaultColor.data + val stringColor = String.format("#%06X", 0xFFFFFF and accentColor) + + rootView.webcontent.visibility = View.VISIBLE + rootView.webcontent.setBackgroundColor(attrBackground.data) + rootView.webcontent.settings.useWideViewPort = true + rootView.webcontent.settings.loadWithOverviewMode = true + rootView.webcontent.settings.javaScriptEnabled = false + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { + rootView.webcontent.settings.layoutAlgorithm = WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING + } else { + rootView.webcontent.settings.layoutAlgorithm = WebSettings.LayoutAlgorithm.SINGLE_COLUMN + } + + rootView.webcontent.loadData( + "$c", + "text/html; charset=utf-8", + "utf-8" + ) + } + private fun openInBrowserAfterFailing(customTabsIntent: CustomTabsIntent) { rootView.progressBar.visibility = View.GONE activity!!.openItemUrl( @@ -224,15 +286,21 @@ class ArticleFragment : Fragment() { ) } - companion object { private val ARG_POSITION = "position" private val ARG_ITEMS = "items" + private val ARG_WEBVIEW = "userWebview" - fun newInstance(position: Int, allItems: ArrayList): ArticleFragment { + fun newInstance( + position: Int, + allItems: ArrayList, + webview: Boolean + ): ArticleFragment { + Log.e("TRUC", "uses webview ? $webview") val fragment = ArticleFragment() val args = Bundle() args.putInt(ARG_POSITION, position) + args.putBoolean(ARG_WEBVIEW, webview) args.putParcelableArrayList(ARG_ITEMS, allItems) fragment.arguments = args return fragment diff --git a/app/src/main/res/layout/fragment_article.xml b/app/src/main/res/layout/fragment_article.xml index 2ac9956..e9d83c6 100644 --- a/app/src/main/res/layout/fragment_article.xml +++ b/app/src/main/res/layout/fragment_article.xml @@ -3,7 +3,8 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="match_parent"> + android:layout_height="match_parent" + android:descendantFocusability="blocksDescendants"> + + + - - - + app:layout_constraintTop_toBottomOf="@+id/source" + android:visibility="gone"/> diff --git a/app/src/main/res/values-af-rZA/strings.xml b/app/src/main/res/values-af-rZA/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-af-rZA/strings.xml +++ b/app/src/main/res/values-af-rZA/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ar-rSA/strings.xml b/app/src/main/res/values-ar-rSA/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-ar-rSA/strings.xml +++ b/app/src/main/res/values-ar-rSA/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ca-rES/strings.xml b/app/src/main/res/values-ca-rES/strings.xml index b7aadf6..5cdf862 100644 --- a/app/src/main/res/values-ca-rES/strings.xml +++ b/app/src/main/res/values-ca-rES/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-cs-rCZ/strings.xml b/app/src/main/res/values-cs-rCZ/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-cs-rCZ/strings.xml +++ b/app/src/main/res/values-cs-rCZ/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-da-rDK/strings.xml b/app/src/main/res/values-da-rDK/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-da-rDK/strings.xml +++ b/app/src/main/res/values-da-rDK/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml index 67dd901..e906379 100644 --- a/app/src/main/res/values-de-rDE/strings.xml +++ b/app/src/main/res/values-de-rDE/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-el-rGR/strings.xml b/app/src/main/res/values-el-rGR/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-el-rGR/strings.xml +++ b/app/src/main/res/values-el-rGR/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-en-rID/strings.xml b/app/src/main/res/values-en-rID/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-en-rID/strings.xml +++ b/app/src/main/res/values-en-rID/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 1c37d4f..b015461 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -159,4 +159,7 @@ Abrir en el navegador Compartir Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-fi-rFI/strings.xml b/app/src/main/res/values-fi-rFI/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-fi-rFI/strings.xml +++ b/app/src/main/res/values-fi-rFI/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-fr-rFR/strings.xml b/app/src/main/res/values-fr-rFR/strings.xml index 34fca7a..79a6912 100644 --- a/app/src/main/res/values-fr-rFR/strings.xml +++ b/app/src/main/res/values-fr-rFR/strings.xml @@ -159,4 +159,7 @@ Ouvrir Partager Marquer les articles comme lus à la navigation dans le lecteur d\'article. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-hu-rHU/strings.xml b/app/src/main/res/values-hu-rHU/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-hu-rHU/strings.xml +++ b/app/src/main/res/values-hu-rHU/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-in-rID/strings.xml b/app/src/main/res/values-in-rID/strings.xml index 508450a..31cab72 100644 --- a/app/src/main/res/values-in-rID/strings.xml +++ b/app/src/main/res/values-in-rID/strings.xml @@ -159,4 +159,7 @@ Buka di peramban Bagikan Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-it-rIT/strings.xml b/app/src/main/res/values-it-rIT/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-it-rIT/strings.xml +++ b/app/src/main/res/values-it-rIT/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-iw-rIL/strings.xml b/app/src/main/res/values-iw-rIL/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-iw-rIL/strings.xml +++ b/app/src/main/res/values-iw-rIL/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ko-rKR/strings.xml b/app/src/main/res/values-ko-rKR/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-ko-rKR/strings.xml +++ b/app/src/main/res/values-ko-rKR/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-nl-rNL/strings.xml b/app/src/main/res/values-nl-rNL/strings.xml index 039745c..2b05b1f 100644 --- a/app/src/main/res/values-nl-rNL/strings.xml +++ b/app/src/main/res/values-nl-rNL/strings.xml @@ -159,4 +159,7 @@ Openen in browser Delen Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-no-rNO/strings.xml b/app/src/main/res/values-no-rNO/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-no-rNO/strings.xml +++ b/app/src/main/res/values-no-rNO/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-pl-rPL/strings.xml b/app/src/main/res/values-pl-rPL/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-pl-rPL/strings.xml +++ b/app/src/main/res/values-pl-rPL/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index be5c339..a637900 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -159,4 +159,7 @@ Abrir no navegador Compartilhar Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index dc8d9d9..2d5ecce 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -159,4 +159,7 @@ Abrir no browser Compartilhar Artigos de marca como lida quando passar entre artigos. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ro-rRO/strings.xml b/app/src/main/res/values-ro-rRO/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-ro-rRO/strings.xml +++ b/app/src/main/res/values-ro-rRO/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-ru-rRU/strings.xml b/app/src/main/res/values-ru-rRU/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-ru-rRU/strings.xml +++ b/app/src/main/res/values-ru-rRU/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-sr-rSP/strings.xml b/app/src/main/res/values-sr-rSP/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-sr-rSP/strings.xml +++ b/app/src/main/res/values-sr-rSP/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-sv-rSE/strings.xml b/app/src/main/res/values-sv-rSE/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-sv-rSE/strings.xml +++ b/app/src/main/res/values-sv-rSE/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-tr-rTR/strings.xml b/app/src/main/res/values-tr-rTR/strings.xml index b9941df..980718b 100644 --- a/app/src/main/res/values-tr-rTR/strings.xml +++ b/app/src/main/res/values-tr-rTR/strings.xml @@ -159,4 +159,7 @@ Tarayıcıda aç Paylaş Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-uk-rUA/strings.xml b/app/src/main/res/values-uk-rUA/strings.xml index b7aadf6..5cdf862 100644 --- a/app/src/main/res/values-uk-rUA/strings.xml +++ b/app/src/main/res/values-uk-rUA/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-vi-rVN/strings.xml b/app/src/main/res/values-vi-rVN/strings.xml index b7aadf6..5f879ee 100644 --- a/app/src/main/res/values-vi-rVN/strings.xml +++ b/app/src/main/res/values-vi-rVN/strings.xml @@ -159,4 +159,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 7e726b5..e1dff11 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -159,4 +159,7 @@ 在浏览器中打开 分享 Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 7e726b5..e1dff11 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -159,4 +159,7 @@ 在浏览器中打开 分享 Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4bff5bf..110a927 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -162,4 +162,7 @@ Open in browser Share Mark articles as read when swiping between articles. + Use a webview in the article viewer (can be slower) + Using the webview for the content of the article viewer. Urls, gifs and images will be better handled, but may be slower. + The content of the article will be displayed as simple text with links and images. Urls may not work, and gifs won\'t load. diff --git a/app/src/main/res/xml/pref_general.xml b/app/src/main/res/xml/pref_general.xml index ac8b78c..9006b2e 100644 --- a/app/src/main/res/xml/pref_general.xml +++ b/app/src/main/res/xml/pref_general.xml @@ -1,11 +1,5 @@ - - @@ -39,6 +33,14 @@ android:summaryOff="@string/prefer_article_viewer_off" android:summaryOn="@string/prefer_article_viewer_on" android:title="@string/prefer_article_viewer_title" /> + +