Skip to content
Commit 3b90d48e authored by Ceci Wu's avatar Ceci Wu Committed by Patrick Tsai
Browse files

Query geo description in worker thread to prevent ANR

Currently geo description of a caller is queried in the main thread, for
both InCallUI and framework CallerInfo. Since it is a potentially
time-consuming operation especially when the system is under heavy
loading, the main thread might be blocked for a long time. As a result,
the ANR happens.

The solution to to move the query to worker thread to free the main
thread and enhance the performance.

Besides, to ensure listeners are notified with complete CallInfo, we
need to delay callbacks until EVENT_END_OF_QUEUE.

Change-Id: Ibe444fc0f98d07e7ebbe266987e60ede334a3216
parent 082b1186
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