From 6dc8bfed8d8faa21e7a3a6cd1be80b7a00691a8f Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 16 Jun 2020 17:30:23 -0400 Subject: [PATCH] Remove some unnecessary strings --- .../eu/kanade/tachiyomi/ui/manga/track/TrackController.kt | 5 +---- app/src/main/res/values/strings.xml | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt index 90f2736cf..09778f6ea 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt @@ -6,7 +6,6 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.LinearLayoutManager -import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.track.model.TrackSearch import eu.kanade.tachiyomi.databinding.TrackControllerBinding import eu.kanade.tachiyomi.ui.base.controller.NucleusController @@ -93,9 +92,7 @@ class TrackController : override fun onLogoClick(position: Int) { val track = adapter?.getItem(position)?.track ?: return - if (track.tracking_url.isBlank()) { - activity?.toast(R.string.url_not_set) - } else { + if (track.tracking_url.isNotBlank()) { activity?.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(track.tracking_url))) } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 946037a97..e07ae42f7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -522,7 +522,6 @@ Type Author Invalid date supplied - Manga URL not set, please click title and select manga again A category with this name already exists! @@ -633,7 +632,6 @@ - Backdrop image of manga Cover of manga