commit | 1cd619462687108bac30d876a4ab8c2a195231cd | [log] [tgz] |
---|---|---|
author | juwei <juwei@codeaurora.org> | Mon Dec 26 14:13:34 2016 +0800 |
committer | juwei <juwei@codeaurora.org> | Tue Jan 03 10:19:02 2017 +0800 |
tree | 70fa115ee922d6ab2ffffd83aeb938a0fddbb02a | |
parent | 2f89961fd763d226b2f4a595bfb77e1a491c01e5 [diff] |
SnapdragonCamera: Fix ANR caused by layout logic child view calls setLayoutParams() in parent view onLayout(), this may lead to a recursion: Child layout params changed -> parent onRequestLayout -> parent view onLayout -> child layout params changed. At last, main thread is busy in processing this unnecessary recursion and block. So move the setLayoutParams() int parent view onSizeChanged(). Change-Id: Ie230abe25caa9bd38f134f41257188cd335f7975 CRs-Fixed: 1105184