Skip to content

Commit ed0830c

Browse files
Matthew XieAndroid (Google) Code Review
authored andcommitted
Merge "Move broadcastState STATE_TURNING_ON before persistSwitchSetting" into ics-mr1
2 parents 386f208 + 2d789e5 commit ed0830c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/server/BluetoothAdapterStateMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ public boolean processMessage(Message message) {
349349
boolean retValue = HANDLED;
350350
switch(message.what) {
351351
case USER_TURN_ON:
352+
broadcastState(BluetoothAdapter.STATE_TURNING_ON);
352353
if ((Boolean) message.obj) {
353354
persistSwitchSetting(true);
354355
}
355356
// let it fall to TURN_ON_CONTINUE:
356357
//$FALL-THROUGH$
357358
case TURN_ON_CONTINUE:
358-
broadcastState(BluetoothAdapter.STATE_TURNING_ON);
359359
mBluetoothService.switchConnectable(true);
360360
transitionTo(mSwitching);
361361
break;

0 commit comments

Comments
 (0)