Skip to content
Commit 8c852156 authored by Andriy Kozachuk's avatar Andriy Kozachuk
Browse files

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
parent 6b9905c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment