Don't initialize mangas if viewing source in list view if on metered connection
(cherry picked from commit c401915fb5c60a71cbeed37533cd2a8aea15d309)
This commit is contained in:
parent
ff1e0d7578
commit
dabb7a0494
@ -640,8 +640,9 @@ open class BrowseSourceController(bundle: Bundle) :
|
||||
presenter.refreshDisplayMode()
|
||||
activity?.invalidateOptionsMenu()
|
||||
setupRecycler(view)
|
||||
if (mode == DisplayMode.LIST || !view.context.connectivityManager.isActiveNetworkMetered) {
|
||||
// Initialize mangas if going to grid view or if over wifi when going to list view
|
||||
|
||||
// Initialize mangas if not on a metered connection
|
||||
if (!view.context.connectivityManager.isActiveNetworkMetered) {
|
||||
val mangas = (0 until adapter.itemCount).mapNotNull {
|
||||
(adapter.getItem(it) as? SourceItem)?.manga
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user