23 lines
798 B
Kotlin
23 lines
798 B
Kotlin
/* 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.home
|
|
|
|
import androidx.lifecycle.ViewModel
|
|
import mozilla.components.browser.state.state.content.DownloadState
|
|
|
|
class SharedViewModel : ViewModel() {
|
|
|
|
/**
|
|
* Used to remember if we need to scroll to the selected tab in the homeFragment's recycleView see #7356
|
|
* */
|
|
var shouldScrollToSelectedTab: Boolean = false
|
|
|
|
/**
|
|
* Stores data needed for [DynamicDownloadDialog]. See #9044
|
|
* Format: HashMap<sessionId, Pair<DownloadState, didFail>
|
|
* */
|
|
var downloadDialogState: HashMap<String?, Pair<DownloadState?, Boolean>> = HashMap()
|
|
}
|