---
title: "Fragment Retains View"
description: "Detects when Android fragments are not explicitly nullified before becoming unreachable."
---

Detects when Android fragments are not explicitly nullified before becoming unreachable.

**\*\*\*DEPRECATED\*\*\*** Unmaintained due to poor precision.

Activate with `--fragment-retains-view`.

Supported languages:
- C/C++/ObjC: No
- Java: Yes
- C#/.Net: Yes



## List of Issue Types

The following issue types are reported by this checker:
- [CHECKERS_FRAGMENT_RETAINS_VIEW](/docs/next/all-issue-types#checkers_fragment_retains_view)