From 9559af3637509fa5e0f83b53d875e1dd47964572 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Sun, 17 Dec 2017 19:51:20 +0100 Subject: [PATCH] Closes #154. --- CHANGELOG.md | 4 +- .../bou/readerforselfoss/ReaderActivity.kt | 194 +++++++++++++----- .../api/selfoss/SelfossModels.kt | 2 +- .../bou/readerforselfoss/utils/ItemsUtils.kt | 5 + app/src/main/res/menu/reader_menu.xml | 17 ++ app/src/main/res/values-af-rZA/strings.xml | 2 + app/src/main/res/values-ar-rSA/strings.xml | 2 + app/src/main/res/values-ca-rES/strings.xml | 2 + app/src/main/res/values-cs-rCZ/strings.xml | 2 + app/src/main/res/values-da-rDK/strings.xml | 2 + app/src/main/res/values-de-rDE/strings.xml | 2 + app/src/main/res/values-el-rGR/strings.xml | 2 + app/src/main/res/values-en-rID/strings.xml | 2 + app/src/main/res/values-es-rES/strings.xml | 2 + app/src/main/res/values-fi-rFI/strings.xml | 2 + app/src/main/res/values-fr-rFR/strings.xml | 2 + app/src/main/res/values-hu-rHU/strings.xml | 2 + app/src/main/res/values-in-rID/strings.xml | 2 + app/src/main/res/values-it-rIT/strings.xml | 2 + app/src/main/res/values-iw-rIL/strings.xml | 2 + app/src/main/res/values-ja-rJP/strings.xml | 2 + app/src/main/res/values-ko-rKR/strings.xml | 2 + app/src/main/res/values-nl-rNL/strings.xml | 2 + app/src/main/res/values-no-rNO/strings.xml | 2 + app/src/main/res/values-pl-rPL/strings.xml | 2 + app/src/main/res/values-pt-rBR/strings.xml | 2 + app/src/main/res/values-pt-rPT/strings.xml | 2 + app/src/main/res/values-ro-rRO/strings.xml | 2 + app/src/main/res/values-ru-rRU/strings.xml | 2 + app/src/main/res/values-sr-rSP/strings.xml | 2 + app/src/main/res/values-sv-rSE/strings.xml | 2 + app/src/main/res/values-tr-rTR/strings.xml | 2 + app/src/main/res/values-uk-rUA/strings.xml | 2 + app/src/main/res/values-vi-rVN/strings.xml | 2 + app/src/main/res/values-zh-rCN/strings.xml | 2 + app/src/main/res/values-zh-rTW/strings.xml | 2 + app/src/main/res/values/strings.xml | 2 + 37 files changed, 229 insertions(+), 57 deletions(-) create mode 100644 app/src/main/res/menu/reader_menu.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 30b1ac0..2b3e07d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ **1.5.7.x** +- Add to favorites from article viewer. + - Added an option to use a webview in the article viewer (see #149) -- Fixes (#151) +- Fixes (#151 #155) **1.5.5.x (didn't last long) AND 1.5.6.x** 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 f087700..1a226b7 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/ReaderActivity.kt @@ -7,7 +7,9 @@ import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentStatePagerAdapter import android.support.v4.view.ViewPager import android.support.v7.app.AppCompatActivity +import android.view.Menu import android.view.MenuItem +import android.widget.Toast import apps.amine.bou.readerforselfoss.api.selfoss.Item import apps.amine.bou.readerforselfoss.api.selfoss.SelfossApi import apps.amine.bou.readerforselfoss.api.selfoss.SuccessResponse @@ -15,6 +17,7 @@ import apps.amine.bou.readerforselfoss.fragments.ArticleFragment import apps.amine.bou.readerforselfoss.transformers.DepthPageTransformer import apps.amine.bou.readerforselfoss.utils.Config import apps.amine.bou.readerforselfoss.utils.succeeded +import apps.amine.bou.readerforselfoss.utils.toggleStar import com.crashlytics.android.Crashlytics import com.ftinc.scoop.Scoop import kotlinx.android.synthetic.main.activity_reader.* @@ -29,6 +32,25 @@ class ReaderActivity : AppCompatActivity() { private var useWebview: Boolean = false + private lateinit var api: SelfossApi + + private lateinit var toolbarMenu: Menu + + private var currentItem: Int = 0 + + private fun showMenuItem(willAddToFavorite: Boolean) { + toolbarMenu.findItem(R.id.save).isVisible = willAddToFavorite + toolbarMenu.findItem(R.id.unsave).isVisible = !willAddToFavorite + } + + private fun canFavorite() { + showMenuItem(true) + } + + private fun canRemoveFromFavorite() { + showMenuItem(false) + } + override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) Scoop.getInstance().apply(this) @@ -59,14 +81,14 @@ class ReaderActivity : AppCompatActivity() { finish() } - val api = SelfossApi( + api = SelfossApi( this, this@ReaderActivity, settings.getBoolean("isSelfSignedCert", false), sharedPref.getBoolean("should_log_everything", false) ) - val currentItem = intent.getIntExtra("currentItem", 0) + currentItem = intent.getIntExtra("currentItem", 0) var adapter = ScreenSlidePagerAdapter(supportFragmentManager) pager.adapter = adapter @@ -75,63 +97,67 @@ class ReaderActivity : AppCompatActivity() { pager.setPageTransformer(true, DepthPageTransformer()) (indicator as CircleIndicator).setViewPager(pager) - if (markOnScroll) { - pager.addOnPageChangeListener( - object : ViewPager.SimpleOnPageChangeListener() { - var isLastItem = false + pager.addOnPageChangeListener( + object : ViewPager.SimpleOnPageChangeListener() { + var isLastItem = false - override fun onPageSelected(position: Int) { - isLastItem = (position === (allItems.size - 1)) - } + override fun onPageSelected(position: Int) { + isLastItem = (position === (allItems.size - 1)) - override fun onPageScrollStateChanged(state: Int) { - if (state === ViewPager.SCROLL_STATE_DRAGGING || (state === ViewPager.SCROLL_STATE_IDLE && isLastItem)) { - api.markItem(allItems[pager.currentItem].id).enqueue( - object : Callback { - override fun onResponse( - call: Call, - response: Response - ) { - if (!response.succeeded() && debugReadingItems) { - val message = - "message: ${response.message()} " + - "response isSuccess: ${response.isSuccessful} " + - "response code: ${response.code()} " + - "response message: ${response.message()} " + - "response errorBody: ${response.errorBody()?.string()} " + - "body success: ${response.body()?.success} " + - "body isSuccess: ${response.body()?.isSuccess}" - Crashlytics.setUserIdentifier(userIdentifier) - Crashlytics.log( - 100, - "READ_DEBUG_SUCCESS", - message - ) - Crashlytics.logException(Exception("Was success, but did it work ?")) - } - } - - override fun onFailure( - call: Call, - t: Throwable - ) { - if (debugReadingItems) { - Crashlytics.setUserIdentifier(userIdentifier) - Crashlytics.log( - 100, - "READ_DEBUG_ERROR", - t.message - ) - Crashlytics.logException(t) - } - } - } - ) - } + if (allItems[position].starred) { + canRemoveFromFavorite() + } else { + canFavorite() } } - ) - } + + override fun onPageScrollStateChanged(state: Int) { + if (markOnScroll && (state === ViewPager.SCROLL_STATE_DRAGGING || (state === ViewPager.SCROLL_STATE_IDLE && isLastItem))) { + api.markItem(allItems[pager.currentItem].id).enqueue( + object : Callback { + override fun onResponse( + call: Call, + response: Response + ) { + if (!response.succeeded() && debugReadingItems) { + val message = + "message: ${response.message()} " + + "response isSuccess: ${response.isSuccessful} " + + "response code: ${response.code()} " + + "response message: ${response.message()} " + + "response errorBody: ${response.errorBody()?.string()} " + + "body success: ${response.body()?.success} " + + "body isSuccess: ${response.body()?.isSuccess}" + Crashlytics.setUserIdentifier(userIdentifier) + Crashlytics.log( + 100, + "READ_DEBUG_SUCCESS", + message + ) + Crashlytics.logException(Exception("Was success, but did it work ?")) + } + } + + override fun onFailure( + call: Call, + t: Throwable + ) { + if (debugReadingItems) { + Crashlytics.setUserIdentifier(userIdentifier) + Crashlytics.log( + 100, + "READ_DEBUG_ERROR", + t.message + ) + Crashlytics.logException(t) + } + } + } + ) + } + } + } + ) } override fun onPause() { @@ -156,12 +182,70 @@ class ReaderActivity : AppCompatActivity() { } } + override fun onCreateOptionsMenu(menu: Menu): Boolean { + val inflater = menuInflater + inflater.inflate(R.menu.reader_menu, menu) + toolbarMenu = menu + + if (allItems[currentItem].starred) { + canRemoveFromFavorite() + } else { + canFavorite() + } + + return true + } + override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { android.R.id.home -> { onBackPressed() return true } + R.id.save -> { + api.starrItem(allItems[pager.currentItem].id).enqueue(object : Callback { + override fun onResponse( + call: Call, + response: Response + ) { + allItems[pager.currentItem] = allItems[pager.currentItem].toggleStar() + canRemoveFromFavorite() + } + + override fun onFailure( + call: Call, + t: Throwable + ) { + Toast.makeText( + baseContext, + R.string.cant_mark_favortie, + Toast.LENGTH_SHORT + ).show() + } + }) + } + R.id.unsave -> { + api.unstarrItem(allItems[pager.currentItem].id).enqueue(object : Callback { + override fun onResponse( + call: Call, + response: Response + ) { + allItems[pager.currentItem] = allItems[pager.currentItem].toggleStar() + canFavorite() + } + + override fun onFailure( + call: Call, + t: Throwable + ) { + Toast.makeText( + baseContext, + R.string.cant_unmark_favortie, + Toast.LENGTH_SHORT + ).show() + } + }) + } } return super.onOptionsItemSelected(item) } diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/api/selfoss/SelfossModels.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/api/selfoss/SelfossModels.kt index c2a601d..3da0b0a 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/api/selfoss/SelfossModels.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/api/selfoss/SelfossModels.kt @@ -66,7 +66,7 @@ data class Item( @SerializedName("title") val title: String, @SerializedName("content") val content: String, @SerializedName("unread") val unread: Boolean, - @SerializedName("starred") val starred: Boolean, + @SerializedName("starred") var starred: Boolean, @SerializedName("thumbnail") val thumbnail: String, @SerializedName("icon") val icon: String, @SerializedName("link") val link: String, diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/utils/ItemsUtils.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/utils/ItemsUtils.kt index 7ca8266..1eda406 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/utils/ItemsUtils.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/utils/ItemsUtils.kt @@ -28,4 +28,9 @@ fun Item.sourceAndDateText(): String { } return this.sourcetitle + formattedDate +} + +fun Item.toggleStar(): Item { + this.starred = !this.starred + return this } \ No newline at end of file diff --git a/app/src/main/res/menu/reader_menu.xml b/app/src/main/res/menu/reader_menu.xml new file mode 100644 index 0000000..2794c09 --- /dev/null +++ b/app/src/main/res/menu/reader_menu.xml @@ -0,0 +1,17 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-af-rZA/strings.xml b/app/src/main/res/values-af-rZA/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-af-rZA/strings.xml +++ b/app/src/main/res/values-af-rZA/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ar-rSA/strings.xml b/app/src/main/res/values-ar-rSA/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ar-rSA/strings.xml +++ b/app/src/main/res/values-ar-rSA/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ca-rES/strings.xml b/app/src/main/res/values-ca-rES/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ca-rES/strings.xml +++ b/app/src/main/res/values-ca-rES/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-cs-rCZ/strings.xml b/app/src/main/res/values-cs-rCZ/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-cs-rCZ/strings.xml +++ b/app/src/main/res/values-cs-rCZ/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-da-rDK/strings.xml b/app/src/main/res/values-da-rDK/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-da-rDK/strings.xml +++ b/app/src/main/res/values-da-rDK/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml index f99012a..9634c25 100644 --- a/app/src/main/res/values-de-rDE/strings.xml +++ b/app/src/main/res/values-de-rDE/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-el-rGR/strings.xml b/app/src/main/res/values-el-rGR/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-el-rGR/strings.xml +++ b/app/src/main/res/values-el-rGR/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-en-rID/strings.xml b/app/src/main/res/values-en-rID/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-en-rID/strings.xml +++ b/app/src/main/res/values-en-rID/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index 70c7ff6..fe5a22b 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-fi-rFI/strings.xml b/app/src/main/res/values-fi-rFI/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-fi-rFI/strings.xml +++ b/app/src/main/res/values-fi-rFI/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-fr-rFR/strings.xml b/app/src/main/res/values-fr-rFR/strings.xml index 9124bb9..425bb9e 100644 --- a/app/src/main/res/values-fr-rFR/strings.xml +++ b/app/src/main/res/values-fr-rFR/strings.xml @@ -162,4 +162,6 @@ Utiliser une \"Webview\" pour afficher les articles. L\'utilisation d\'une \"Webview\" pour afficher les articles permettra d\'afficher les gifs, et mieux gérer les images et liens. Cette option peut être plus lente. Le contenu de l\'article sera un simple teste avec images et liens. Certains liens peuvent ne pas fonctionner, et les gifs ne fonctionneront pas. + Ajouter aux favoris + Enlever aux favoris diff --git a/app/src/main/res/values-hu-rHU/strings.xml b/app/src/main/res/values-hu-rHU/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-hu-rHU/strings.xml +++ b/app/src/main/res/values-hu-rHU/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-in-rID/strings.xml b/app/src/main/res/values-in-rID/strings.xml index eee1e5e..5179b98 100644 --- a/app/src/main/res/values-in-rID/strings.xml +++ b/app/src/main/res/values-in-rID/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-it-rIT/strings.xml b/app/src/main/res/values-it-rIT/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-it-rIT/strings.xml +++ b/app/src/main/res/values-it-rIT/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-iw-rIL/strings.xml b/app/src/main/res/values-iw-rIL/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-iw-rIL/strings.xml +++ b/app/src/main/res/values-iw-rIL/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ko-rKR/strings.xml b/app/src/main/res/values-ko-rKR/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ko-rKR/strings.xml +++ b/app/src/main/res/values-ko-rKR/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-nl-rNL/strings.xml b/app/src/main/res/values-nl-rNL/strings.xml index 76e1713..8fc081a 100644 --- a/app/src/main/res/values-nl-rNL/strings.xml +++ b/app/src/main/res/values-nl-rNL/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-no-rNO/strings.xml b/app/src/main/res/values-no-rNO/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-no-rNO/strings.xml +++ b/app/src/main/res/values-no-rNO/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-pl-rPL/strings.xml b/app/src/main/res/values-pl-rPL/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-pl-rPL/strings.xml +++ b/app/src/main/res/values-pl-rPL/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 181cac7..2a46564 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index cf06b89..2cba082 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ro-rRO/strings.xml b/app/src/main/res/values-ro-rRO/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ro-rRO/strings.xml +++ b/app/src/main/res/values-ro-rRO/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-ru-rRU/strings.xml b/app/src/main/res/values-ru-rRU/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-ru-rRU/strings.xml +++ b/app/src/main/res/values-ru-rRU/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-sr-rSP/strings.xml b/app/src/main/res/values-sr-rSP/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-sr-rSP/strings.xml +++ b/app/src/main/res/values-sr-rSP/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-sv-rSE/strings.xml b/app/src/main/res/values-sv-rSE/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-sv-rSE/strings.xml +++ b/app/src/main/res/values-sv-rSE/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-tr-rTR/strings.xml b/app/src/main/res/values-tr-rTR/strings.xml index 15d2f93..92ad2a1 100644 --- a/app/src/main/res/values-tr-rTR/strings.xml +++ b/app/src/main/res/values-tr-rTR/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-uk-rUA/strings.xml b/app/src/main/res/values-uk-rUA/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-uk-rUA/strings.xml +++ b/app/src/main/res/values-uk-rUA/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-vi-rVN/strings.xml b/app/src/main/res/values-vi-rVN/strings.xml index 1529fd3..1bf6236 100644 --- a/app/src/main/res/values-vi-rVN/strings.xml +++ b/app/src/main/res/values-vi-rVN/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 10c1789..1041d97 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 10c1789..1041d97 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -162,4 +162,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9ac131a..b9ffbda 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -165,4 +165,6 @@ Use a webview in the article viewer. 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. + Add to favorites + Remove from favorites