Skip to content

Add onDetachedFromWindow cleanup to prevent memory leaks #6

@OneXeor

Description

@OneXeor

Description

All View components lack proper cleanup when detached, causing potential memory leaks.

Tasks

  • ParticlesView: Stop animation, clear particle list
  • ParticleProgressBar: Cancel pending invalidation
  • PulseButton: Recycle bitmap, stop animation
  • BottomNavigationBar: Recycle cached bitmaps
  • CenterNavigationButton: Clear references

Implementation

override fun onDetachedFromWindow() {
    super.onDetachedFromWindow()
    // Stop animations
    // Clear collections
    // Recycle bitmaps
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingphase-1Critical fixes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions