if (BluetoothScanAlarmBroadcastReceiver.bluetooth == null)
BluetoothScanAlarmBroadcastReceiver.bluetooth = BluetoothScanAlarmBroadcastReceiver.getBluetoothAdapter(context);
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
<BUG>if (PPApplication.getGlobalEventsRuning(context))
{</BUG>
boolean scanStarted = (BluetoothScanAlarmBroadcastReceiver.getWaitForResults(context));
if (scanStarted)
{

if (BluetoothScanAlarmBroadcastReceiver.bluetooth == null)
BluetoothScanAlarmBroadcastReceiver.bluetooth = BluetoothScanAlarmBroadcastReceiver.getBluetoothAdapter(context);
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
int forceOneScan = PPApplication.getForceOneBluetoothScan(context);
if (PPApplication.getGlobalEventsRuning(context) || (forceOneScan == PPApplication.FORCE_ONE_SCAN_FROM_PREF_DIALOG))
{
boolean scanStarted = (BluetoothScanAlarmBroadcastReceiver.getWaitForResults(context));
if (scanStarted)
{
