Merge branch 'master' of git.linphone.org:linphone-android into belle-sip

This commit is contained in:
Ghislain MARY 2013-07-02 17:58:47 +02:00
commit 44fe90478d
4 changed files with 18 additions and 8 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.linphone" package="org.linphone"
android:versionCode="2100" android:installLocation="auto"> android:versionCode="2120" android:installLocation="auto">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"/>
<!-- Permissions for Push Notification --> <!-- Permissions for Push Notification -->

View file

@ -355,6 +355,9 @@
<string name="button_video">Видео</string> <string name="button_video">Видео</string>
<string name="button_micro">Микрофон</string> <string name="button_micro">Микрофон</string>
<string name="button_speaker">Громкость</string> <string name="button_speaker">Громкость</string>
<string name="button_route">Маршрут</string>
<string name="button_receiver">Получатель</string>
<string name="button_bluetooth">Bluetooth</string>
<string name="button_options">Настройки</string> <string name="button_options">Настройки</string>
<string name="button_send_message">Послать</string> <string name="button_send_message">Послать</string>
@ -384,6 +387,7 @@
<string name="linphone_friend_new_request_desc">хочет поделиться своим статусом с Вами и получать обновления Вашего статуса.</string> <string name="linphone_friend_new_request_desc">хочет поделиться своим статусом с Вами и получать обновления Вашего статуса.</string>
<string name="setup_ec_calibration">Идёт настройка шумоподавления</string> <string name="setup_ec_calibration">Идёт настройка шумоподавления</string>
<string name="pref_image_sharing_server_title">Общий сервер</string> <string name="pref_image_sharing_server_title">Общий сервер</string>
<string name="pref_remote_provisioning_title">Удалённое резервирование</string>
<string name="delete_contact">Удалить контакт</string> <string name="delete_contact">Удалить контакт</string>
<string name="sip_address">адрес SIP</string> <string name="sip_address">адрес SIP</string>
@ -413,4 +417,7 @@
<string name="call_state_incoming">Входящий</string> <string name="call_state_incoming">Входящий</string>
<string name="pref_background_mode">Фоновый режим</string> <string name="pref_background_mode">Фоновый режим</string>
<string name="download_image">Скачать</string>
<string name="download_image_failed">Ошибка скачивания. Проверьте ваше интернет соединение или попробуйте позже.</string>
</resources> </resources>

View file

@ -228,7 +228,7 @@ public class InCallActivity extends FragmentActivity implements
routeBluetooth = (TextView) findViewById(R.id.routeBluetooth); routeBluetooth = (TextView) findViewById(R.id.routeBluetooth);
routeBluetooth.setOnClickListener(this); routeBluetooth.setOnClickListener(this);
} catch (NullPointerException npe) { } catch (NullPointerException npe) {
Log.e("Audio routes menu disabled on tablets for now"); Log.e("Bluetooth: Audio routes menu disabled on tablets for now (1)");
} }
switchCamera = (ImageView) findViewById(R.id.switchCamera); switchCamera = (ImageView) findViewById(R.id.switchCamera);
@ -251,16 +251,18 @@ public class InCallActivity extends FragmentActivity implements
if (LinphoneManager.getInstance().isBluetoothScoConnected) { if (LinphoneManager.getInstance().isBluetoothScoConnected) {
try { try {
routeLayout.setVisibility(View.VISIBLE); if (routeLayout != null)
routeLayout.setVisibility(View.VISIBLE);
audioRoute.setVisibility(View.VISIBLE); audioRoute.setVisibility(View.VISIBLE);
speaker.setVisibility(View.GONE); speaker.setVisibility(View.GONE);
} catch (NullPointerException npe) {} } catch (NullPointerException npe) { Log.e("Bluetooth: Audio routes menu disabled on tablets for now (2)"); }
} else { } else {
try { try {
routeLayout.setVisibility(View.GONE); if (routeLayout != null)
routeLayout.setVisibility(View.GONE);
audioRoute.setVisibility(View.GONE); audioRoute.setVisibility(View.GONE);
speaker.setVisibility(View.VISIBLE); speaker.setVisibility(View.VISIBLE);
} catch (NullPointerException npe) {} } catch (NullPointerException npe) { Log.e("Bluetooth: Audio routes menu disabled on tablets for now (3)"); }
} }
} }
@ -299,7 +301,7 @@ public class InCallActivity extends FragmentActivity implements
} }
} }
} catch (NullPointerException npe) { } catch (NullPointerException npe) {
Log.e("Audio routes menu disabled on tablets for now"); Log.e("Bluetooth: Audio routes menu disabled on tablets for now (4)");
} }
if (isMicMuted) { if (isMicMuted) {

View file

@ -266,6 +266,7 @@ public class LinphoneManager implements LinphoneCoreListener {
public void onServiceConnected(int profile, BluetoothProfile proxy) { public void onServiceConnected(int profile, BluetoothProfile proxy) {
if (profile == BluetoothProfile.HEADSET) { if (profile == BluetoothProfile.HEADSET) {
mBluetoothHeadset = (BluetoothHeadset) proxy; mBluetoothHeadset = (BluetoothHeadset) proxy;
isBluetoothScoConnected = true;
Log.d("Bluetooth headset connected"); Log.d("Bluetooth headset connected");
} }
} }
@ -273,8 +274,8 @@ public class LinphoneManager implements LinphoneCoreListener {
public void onServiceDisconnected(int profile) { public void onServiceDisconnected(int profile) {
if (profile == BluetoothProfile.HEADSET) { if (profile == BluetoothProfile.HEADSET) {
mBluetoothHeadset = null; mBluetoothHeadset = null;
Log.d("Bluetooth headset disconnected");
isBluetoothScoConnected = false; isBluetoothScoConnected = false;
Log.d("Bluetooth headset disconnected");
routeAudioToReceiver(); routeAudioToReceiver();
} }
} }