improve summary

This commit is contained in:
Bnyro 2022-09-12 14:32:00 +02:00
parent d5bddba863
commit 1501b2660e
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,6 @@ import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
@ -31,7 +30,6 @@ import com.github.libretube.constants.PreferenceKeys
import com.github.libretube.databinding.ActivityMainBinding
import com.github.libretube.dialogs.ErrorDialog
import com.github.libretube.extensions.BaseActivity
import com.github.libretube.extensions.TAG
import com.github.libretube.extensions.toID
import com.github.libretube.fragments.PlayerFragment
import com.github.libretube.models.PlayerViewModel
@ -237,7 +235,10 @@ class MainActivity : BaseActivity() {
if (!PreferenceHelper.getBoolean(
PreferenceKeys.NEW_VIDEOS_BADGE,
false
)) return
)
) {
return
}
val subscriptionsViewModel = ViewModelProvider(this)[SubscriptionsViewModel::class.java]
subscriptionsViewModel.fetchSubscriptions()

View File

@ -320,5 +320,5 @@
<string name="wifi">WiFi</string>
<string name="mobile_data">Mobile data</string>
<string name="new_videos_badge">Indicator for new videos</string>
<string name="new_videos_badge_summary">Show a badge with the amount of new videos</string>
<string name="new_videos_badge_summary">Show a badge with the amount of new videos if there are some.</string>
</resources>