Merge change 7396 into donut
* changes: Run background threads associated with filtering at background priority.
This commit is contained in:
@@ -85,7 +85,8 @@ public abstract class Filter {
|
|||||||
public final void filter(CharSequence constraint, FilterListener listener) {
|
public final void filter(CharSequence constraint, FilterListener listener) {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
if (mThreadHandler == null) {
|
if (mThreadHandler == null) {
|
||||||
HandlerThread thread = new HandlerThread(THREAD_NAME);
|
HandlerThread thread = new HandlerThread(
|
||||||
|
THREAD_NAME, android.os.Process.THREAD_PRIORITY_BACKGROUND);
|
||||||
thread.start();
|
thread.start();
|
||||||
mThreadHandler = new RequestHandler(thread.getLooper());
|
mThreadHandler = new RequestHandler(thread.getLooper());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user