OSDN Git Service

Properly initialize recognition service if the recognizer component changed.
authorAmith Yamasani <yamasani@google.com>
Fri, 18 Jan 2013 19:04:09 +0000 (11:04 -0800)
committerAmith Yamasani <yamasani@google.com>
Tue, 22 Jan 2013 23:35:49 +0000 (15:35 -0800)
commit596532d9dbea3460dbc989b0316c721ca69f4915
tree6d55cb09d7ab6342ab3e001cdabd2f9c613da324
parent0cf97d32178b689184866e731c0a4105d8223d80
Properly initialize recognition service if the recognizer component changed.

The getServiceInfo() call directly to IPackageManager does not throw an exception.
The return value needed to be checked for null.

Bug: 8031032
Change-Id: I701b9e8cf3b2406a3b35a486183330489b3d46f5
services/java/com/android/server/RecognitionManagerService.java