1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadInteractor.kt

26 lines
826 B
Kotlin
Raw Normal View History

2020-07-02 01:10:44 +02:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.fenix.library.downloads
/**
* Interactor for the download screen
* Provides implementations for the DownloadViewInteractor
*/
@SuppressWarnings("TooManyFunctions")
class DownloadInteractor(
private val downloadController: DownloadController
) : DownloadViewInteractor {
override fun open(item: DownloadItem) {
downloadController.handleOpen(item)
}
override fun select(item: DownloadItem) { /* noop */ }
2020-07-02 01:10:44 +02:00
override fun deselect(item: DownloadItem) { /* noop */ }
2020-07-02 01:10:44 +02:00
override fun onBackPressed(): Boolean {
return downloadController.handleBackPressed()
}
}