зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1088527 - Modify BluetoothOppManager.IsConnected to indicate whether profile is connected or not. r=btian
BluetoothOppManager.IsConnected() couldn't represent the connection status of Opp profile since it only return true if there is an ongoing file-transfer session. This function was used to named |IsTransferring()| in Bug 827267, however, it was renamed to |IsConnected()| when Bug 842948 landed.
This commit is contained in:
Родитель
59a3b8b75b
Коммит
3988677a6b
|
@ -1218,7 +1218,7 @@ BluetoothOppManager::CheckPutFinal(uint32_t aNumRead)
|
|||
bool
|
||||
BluetoothOppManager::IsConnected()
|
||||
{
|
||||
return (mConnected && !mSendTransferCompleteFlag);
|
||||
return mConnected;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1238,7 +1238,7 @@ BluetoothOppManager::CheckPutFinal(uint32_t aNumRead)
|
|||
bool
|
||||
BluetoothOppManager::IsConnected()
|
||||
{
|
||||
return (mConnected && !mSendTransferCompleteFlag);
|
||||
return mConnected;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1218,7 +1218,7 @@ BluetoothOppManager::CheckPutFinal(uint32_t aNumRead)
|
|||
bool
|
||||
BluetoothOppManager::IsConnected()
|
||||
{
|
||||
return (mConnected && !mSendTransferCompleteFlag);
|
||||
return mConnected;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1238,7 +1238,7 @@ BluetoothOppManager::CheckPutFinal(uint32_t aNumRead)
|
|||
bool
|
||||
BluetoothOppManager::IsConnected()
|
||||
{
|
||||
return (mConnected && !mSendTransferCompleteFlag);
|
||||
return mConnected;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче