Move handling of package changes to a background thread.

Helps get rid of some jank when installing applications.

Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62
This commit is contained in:
Dianne Hackborn
2012-04-19 23:12:09 -07:00
parent 5dd32fbcbf
commit d0d7503fd3
13 changed files with 95 additions and 68 deletions

View File

@ -594,7 +594,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
}
mImListManager = new InputMethodAndSubtypeListManager(context, this);
(new MyPackageMonitor()).register(mContext, true);
(new MyPackageMonitor()).register(mContext, null, true);
IntentFilter screenOnOffFilt = new IntentFilter();
screenOnOffFilt.addAction(Intent.ACTION_SCREEN_ON);