OSDN Git Service

Fix potential null pointer exeption in keyguard
authorJim Miller <jaggies@google.com>
Wed, 31 Oct 2012 03:12:53 +0000 (20:12 -0700)
committerJim Miller <jaggies@google.com>
Wed, 31 Oct 2012 03:12:53 +0000 (20:12 -0700)
commit82b517be0b3973781970be992b7a95157e3bfd0b
tree1b2f1a28e974a2d2b2da4f6de59a26d5c118c568
parentc8f7c5eb7447b26238e0b5a9355d2d0ee06a9d90
Fix potential null pointer exeption in keyguard

The code was adding default widgets before setting mViewStateManager, which means the
callback from the transport control might access mViewStateManager before it's set.

Change-Id: I985a3c8062d0660519cb4a4c8c1b42c7c90f4ac7
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java