[packages/apps/Settings] fix bug: bt can not be foud after reopen bt in BluetoothSettings Activity

This commit is contained in:
Firefly
2015-11-04 15:49:56 +08:00
committed by cjp
parent 5d7d847b78
commit 5407bf5a48

View File

@ -352,6 +352,7 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem
break;
case BluetoothAdapter.STATE_OFF:
mInitiateDiscoverable = true;
messageId = R.string.bluetooth_empty_list_bluetooth_off;
if (isUiRestricted()) {
messageId = R.string.bluetooth_empty_list_user_restricted;