Fix issue #3146784: ANR in manage applications

See the big comment.

Change-Id: I36164a6fcba58fe2b0e2b3aa216780d0d0e5ed37
2 files changed