Issue is related to setScale()
method only. Due to large canvas size, setScale()
is taking a long time in UI thread.
Basically Job
is used to perform non-UI activities in backend. For UI activities, busy indicator
is suitable. However, since I wanted to cancel the scaling task, I was using user Job. Issue can be resolved using busy indicator instead and thus no cancel action could be provided.