瀏覽代碼

Remove some unnecessary strings

arkon 4 年之前
父節點
當前提交
6dc8bfed8d

+ 1 - 4
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)))
         }
     }

+ 0 - 2
app/src/main/res/values/strings.xml

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