OSDN Git Service

b/2630339 Fixed the crash when an app requests BT to be enabled
authorMichael Chan <mchan@android.com>
Wed, 28 Apr 2010 18:10:40 +0000 (11:10 -0700)
committerMichael Chan <mchan@android.com>
Wed, 28 Apr 2010 18:24:00 +0000 (11:24 -0700)
commita0de1dcd1960181d9d8fd2e44f19dead16021e2b
treec5fb10fd6b88b8bc25aacee3fd1ca4a407485b69
parent64ab5338cb0f90f8ee0787b0b98611670e6dee7e
b/2630339 Fixed the crash when an app requests BT to be enabled

For AlertActivity, the dialog needs to display at onCreate() time.
Otherwise, the decor view would be made. Trying to display the
dialog afterward would crash. Changed to AlertDialog instead.

Change-Id: I2ea8463b4c475b9b54746d0a722fa80eea3d4529
src/com/android/settings/bluetooth/RequestPermissionActivity.java