Stub out a few necessary view model methods.
This commit is contained in:
parent
e54f101813
commit
311b24efbc
2 changed files with 15 additions and 3 deletions
|
@ -204,11 +204,11 @@ class RemoteBackupsSettingsFragment : ComposeFragment() {
|
|||
}
|
||||
|
||||
override fun onStartMediaRestore() {
|
||||
// TODO - [backups] Begin media restore.
|
||||
viewModel.beginMediaRestore()
|
||||
}
|
||||
|
||||
override fun onCancelMediaRestore() {
|
||||
// TODO - [backups] Cancel in-progress media restoration
|
||||
viewModel.cancelMediaRestore()
|
||||
}
|
||||
|
||||
override fun onDisplaySkipMediaRestoreProtectionDialog() {
|
||||
|
@ -216,7 +216,7 @@ class RemoteBackupsSettingsFragment : ComposeFragment() {
|
|||
}
|
||||
|
||||
override fun onSkipMediaRestore() {
|
||||
// TODO - [backups] Skip disk-full media restoration
|
||||
viewModel.skipMediaRestore()
|
||||
}
|
||||
|
||||
override fun onLearnMoreAboutLostSubscription() {
|
||||
|
|
|
@ -114,6 +114,18 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
|
|||
MessageBackupListener.schedule(AppDependencies.application)
|
||||
}
|
||||
|
||||
fun beginMediaRestore() {
|
||||
// TODO - [backups] Begin media restore.
|
||||
}
|
||||
|
||||
fun skipMediaRestore() {
|
||||
// TODO [backups] -- Clear the error as necessary
|
||||
}
|
||||
|
||||
fun cancelMediaRestore() {
|
||||
// TODO - [backups] Cancel in-progress media restoration
|
||||
}
|
||||
|
||||
fun requestDialog(dialog: RemoteBackupsSettingsState.Dialog) {
|
||||
_state.update { it.copy(dialog = dialog) }
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue