diff options
| author | 2023-07-03 15:24:07 +0000 | |
|---|---|---|
| committer | 2023-07-10 07:01:34 +0000 | |
| commit | 2bc364179327022d0f60224a1f2420349074c5d2 (patch) | |
| tree | 48c9d46c4e083270ee1644b289fa11959c2637d6 /wifi/java/src | |
| parent | c8a7e3557c53b4a319b90198990fb0925f0ece06 (diff) | |
Create static inner class for UiModeManager
UiModeManager instances register a callback to the service on creation.
This is problematic since the callback will store the instance of the
class under the hood and prevent it from being garbage collected.
Instead, use a static inner class containing only what is required for
the callbacks.
Also move the mService object, which is a IBinder.stub.asInterface(..),
inside the static inner class.
This follows the same pattern as in WallpaperManager.
Fixes: 289811808
Test: atest UiModeManagerTest
Change-Id: I60a348483cde684891b7468eb45f28422b0e4a5d
Diffstat (limited to 'wifi/java/src')
0 files changed, 0 insertions, 0 deletions