PPApplication.logE("##### BluetoothLEScanBroadcastReceiver.onReceive", "xxx");
PPApplication.logE("@@@ BluetoothLEScanBroadcastReceiver.onReceive", "----- start");
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
<BUG>if (PPApplication.getGlobalEventsRuning(context))
{</BUG>
boolean scanStarted = (BluetoothScanAlarmBroadcastReceiver.getWaitForLEResults(context));
if (scanStarted)
{

PPApplication.logE("##### BluetoothLEScanBroadcastReceiver.onReceive", "xxx");
PPApplication.logE("@@@ BluetoothLEScanBroadcastReceiver.onReceive", "----- start");
if (!PPApplication.getApplicationStarted(context, true))
return;
PPApplication.loadPreferences(context);
int forceOneScan = PPApplication.getForceOneLEBluetoothScan(context);
if (PPApplication.getGlobalEventsRuning(context) || (forceOneScan == PPApplication.FORCE_ONE_SCAN_FROM_PREF_DIALOG))
{
boolean scanStarted = (BluetoothScanAlarmBroadcastReceiver.getWaitForLEResults(context));
if (scanStarted)
{
