Fixed linphone's ringtone + increased version number

This commit is contained in:
Sylvain Berfini 2019-01-11 15:45:31 +01:00
parent 93f860d136
commit 84f3d4ebd9
3 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,7 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 28 targetSdkVersion 28
versionCode 4108 versionCode 4109
versionName "4.1" versionName "4.1"
applicationId getPackageName() applicationId getPackageName()
multiDexEnabled true multiDexEnabled true

View file

@ -217,7 +217,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
mChatDatabaseFile = mBasePath + "/linphone-history.db"; mChatDatabaseFile = mBasePath + "/linphone-history.db";
mCallLogDatabaseFile = mBasePath + "/linphone-log-history.db"; mCallLogDatabaseFile = mBasePath + "/linphone-log-history.db";
mFriendsDatabaseFile = mBasePath + "/linphone-friends.db"; mFriendsDatabaseFile = mBasePath + "/linphone-friends.db";
mRingSoundFile = mBasePath + "/ringtone.mkv"; mRingSoundFile = mBasePath + "/share/sounds/linphone/rings/notes_of_the_optimistic.mkv";
mUserCertsPath = mBasePath + "/user-certs"; mUserCertsPath = mBasePath + "/user-certs";
mPrefs = LinphonePreferences.instance(); mPrefs = LinphonePreferences.instance();

View file

@ -1348,6 +1348,7 @@ public class LinphonePreferences {
public void enableDeviceRingtone(boolean enable) { public void enableDeviceRingtone(boolean enable) {
getConfig().setBool("app", "device_ringtone", enable); getConfig().setBool("app", "device_ringtone", enable);
LinphoneManager.getInstance().enableDeviceRingtone(enable);
} }
public boolean isIncomingCallVibrationEnabled() { public boolean isIncomingCallVibrationEnabled() {