mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 17:40:30 +05:30
improve summary
This commit is contained in:
parent
d5bddba863
commit
1501b2660e
@ -7,7 +7,6 @@ import android.os.Build
|
|||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.os.Looper
|
import android.os.Looper
|
||||||
import android.util.Log
|
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@ -31,7 +30,6 @@ import com.github.libretube.constants.PreferenceKeys
|
|||||||
import com.github.libretube.databinding.ActivityMainBinding
|
import com.github.libretube.databinding.ActivityMainBinding
|
||||||
import com.github.libretube.dialogs.ErrorDialog
|
import com.github.libretube.dialogs.ErrorDialog
|
||||||
import com.github.libretube.extensions.BaseActivity
|
import com.github.libretube.extensions.BaseActivity
|
||||||
import com.github.libretube.extensions.TAG
|
|
||||||
import com.github.libretube.extensions.toID
|
import com.github.libretube.extensions.toID
|
||||||
import com.github.libretube.fragments.PlayerFragment
|
import com.github.libretube.fragments.PlayerFragment
|
||||||
import com.github.libretube.models.PlayerViewModel
|
import com.github.libretube.models.PlayerViewModel
|
||||||
@ -237,7 +235,10 @@ class MainActivity : BaseActivity() {
|
|||||||
if (!PreferenceHelper.getBoolean(
|
if (!PreferenceHelper.getBoolean(
|
||||||
PreferenceKeys.NEW_VIDEOS_BADGE,
|
PreferenceKeys.NEW_VIDEOS_BADGE,
|
||||||
false
|
false
|
||||||
)) return
|
)
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
val subscriptionsViewModel = ViewModelProvider(this)[SubscriptionsViewModel::class.java]
|
val subscriptionsViewModel = ViewModelProvider(this)[SubscriptionsViewModel::class.java]
|
||||||
subscriptionsViewModel.fetchSubscriptions()
|
subscriptionsViewModel.fetchSubscriptions()
|
||||||
|
@ -320,5 +320,5 @@
|
|||||||
<string name="wifi">WiFi</string>
|
<string name="wifi">WiFi</string>
|
||||||
<string name="mobile_data">Mobile data</string>
|
<string name="mobile_data">Mobile data</string>
|
||||||
<string name="new_videos_badge">Indicator for new videos</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>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user