Make "Recycle" Android Lint rule blocking for PermissionController
"Recycle" Android Lint rule checks the code for unclosed Cursor objects, as well as other unclosed resources. Cursors which are not closed as soon as they are not used anymore may lead to Android performance issues: * if Cursor was created by querying ContentProvider, then it will hold an active binding to the process that hosts ContentProvider, which will prevent this process from being cached or unloaded * each Cursor can hold an up to 2 MB CursorWindow memory buffer Changing "Recycle" rule severity to "error" will block the code with unclosed Cursors from being submitted. Bug: 266775648 Test: m PermissionController Test: m lint-check Change-Id: I825ee55f6083e72210266f8b0c5699e527fed93b
Loading
Please register or sign in to comment