Remove some unnecessary strings

This commit is contained in:
arkon 2020-06-16 17:30:23 -04:00
parent f642f23366
commit 6dc8bfed8d
2 changed files with 1 additions and 6 deletions

View File

@ -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)))
}
}

View File

@ -522,7 +522,6 @@
<string name="track_type">Type</string>
<string name="track_author">Author</string>
<string name="error_invalid_date_supplied">Invalid date supplied</string>
<string name="url_not_set">Manga URL not set, please click title and select manga again</string>
<!-- Category activity -->
<string name="error_category_exists">A category with this name already exists!</string>
@ -633,7 +632,6 @@
</plurals>
<!--Content Description-->
<string name="description_backdrop">Backdrop image of manga</string>
<string name="description_cover">Cover of manga</string>
<!-- Information Text -->