Fix crash when going back while already going back

The navigation utilities we have in place normally take care of canceling scheduled work (IO and back on main thread as well) when we leave a screen. Unfortunately we were previously waiting for the view animation to be done (view detached). Instead we now cancel the work as soon as we decide to move.

Fixes #1768
5 files changed
tree: ddb3c132a99ac71f6b23163cda6b80bcb66aff73
  1. .buildscript/
  2. .github/
  3. docs/
  4. gradle/
  5. hooks/
  6. leakcanary-android/
  7. leakcanary-android-core/
  8. leakcanary-android-instrumentation/
  9. leakcanary-android-process/
  10. leakcanary-android-sample/
  11. leakcanary-deobfuscation-gradle-plugin/
  12. leakcanary-object-watcher/
  13. leakcanary-object-watcher-android/
  14. leakcanary-object-watcher-android-androidx/
  15. leakcanary-object-watcher-android-support-fragments/
  16. shark/
  17. shark-android/
  18. shark-cli/
  19. shark-graph/
  20. shark-hprof/
  21. shark-hprof-test/
  22. shark-log/
  23. shark-test/
  24. .gitignore
  25. .travis.yml
  26. build.gradle
  27. detekt-config.yml
  28. gradle.properties
  29. gradlew
  30. LICENSE.txt
  31. mkdocs.yml
  32. README.md
  33. settings.gradle
  34. shark-cli.sh
README.md

LeakCanary 🐤

A memory leak detection library for Android.

square.github.io/leakcanary

License

Copyright 2015 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.