commit | eb11b2401b2b964281c79c4615d174f32987e87c | [log] [tgz] |
---|---|---|
author | Kwangkyu Park <kk48.park@samsung.com> | Fri Aug 12 16:28:31 2022 +0900 |
committer | Kwangkyu Park <kk48.park@samsung.com> | Fri Aug 12 16:39:08 2022 +0900 |
tree | 8ce64e5887f1059c0ced45331caed036ccef624f | |
parent | 00545d0fd6ba561271b690bac51f3439d3bc56e5 [diff] |
Fix an issue that the FoldStateListener induces a memory leak FoldStateListener is non-static inner class and keeps reference to the outer class which is CameraManager. As CameraManager also keeps context with mContext, memory leak could exist. Changing FoldStateListener to static inner class, so that the class won't keep the reference. Bug: 242264787 Test: Manual test with memory profiling Change-Id: I77652bd94b50eabc80041e13274b619c0da36601