if(isInitBluetooth == false)
{
SysLog(NID_SYS, "Bluetooth headset event is reserved.");
- media_key_reserve(app_media_key_handler, null);
int btResult = 0;
btResult = bt_initialize();
Integer* pPid = new (std::nothrow) Integer(pid);
__interestedPidList.Add(*pPid);
+ if(__interestedPidList.GetCount() > 0)
+ {
+ media_key_reserve(app_media_key_handler, null);
+ }
}
void
if(pPid->value == pid)
{
__interestedPidList.RemoveAt(count, true);
- return;
+ break;
}
}
+
+ if(__interestedPidList.GetCount() == 0)
+ {
+ media_key_release();
+ }
}
void