Skip to content

Commit

Permalink
Print cancels when destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Apr 16, 2023
1 parent e638b5e commit fdd3c0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class MapListFragment : BoundFragment<FragmentMapListBinding>() {
}

private fun print(map: PhotoMap) {
inBackground {
inBackground(BackgroundMinimumState.Created) {
PrintMapCommand(requireContext()).execute(map)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.kylecorry.andromeda.core.coroutines.BackgroundMinimumState
import com.kylecorry.andromeda.fragments.BoundFragment
import com.kylecorry.andromeda.fragments.inBackground
import com.kylecorry.andromeda.pickers.Pickers
Expand Down Expand Up @@ -126,7 +127,7 @@ class MapsFragment : BoundFragment<FragmentMapsBinding>() {

private fun print() {
val command = PrintMapCommand(requireContext())
inBackground {
inBackground(BackgroundMinimumState.Created) {
map?.let {
command.execute(it)
}
Expand Down

0 comments on commit fdd3c0e

Please sign in to comment.