Add database for calllogs

This commit is contained in:
Margaux Clerc 2015-11-19 15:09:41 +01:00
parent 41d998beb9
commit 92939a7028
2 changed files with 3 additions and 60 deletions

View file

@ -315,66 +315,6 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On
}
}
private void hideDeleteAllButton() {
if (delete == null || delete.getVisibility() != View.VISIBLE) {
return;
}
if (LinphoneActivity.instance().isAnimationDisabled()) {
delete.setVisibility(View.INVISIBLE);
} else {
Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_out_right_to_left);
animation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
delete.setVisibility(View.INVISIBLE);
animation.setAnimationListener(null);
}
});
delete.startAnimation(animation);
}
}
private void showDeleteAllButton() {
if (delete == null || delete.getVisibility() == View.VISIBLE) {
return;
}
if (LinphoneActivity.instance().isAnimationDisabled()) {
delete.setVisibility(View.VISIBLE);
} else {
Animation animation = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_in_left_to_right);
animation.setAnimationListener(new AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationRepeat(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
delete.setVisibility(View.VISIBLE);
animation.setAnimationListener(null);
}
});
delete.startAnimation(animation);
}
}
public void quitEditMode(){
isEditMode = false;
editList.setVisibility(View.GONE);

View file

@ -649,6 +649,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
mLc.setRootCA(mLinphoneRootCaFile);
mLc.setPlayFile(mPauseSoundFile);
mLc.setChatDatabasePath(mChatDatabaseFile);
mLc.setCallLogsDatabasePath(mCallLogDatabaseFile);
//mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile);
int availableCores = Runtime.getRuntime().availableProcessors();
@ -658,6 +659,8 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
int migrationResult = getLc().migrateToMultiTransport();
Log.d("Migration to multi transport result = " + migrationResult);
mLc.migrateCallLogs();
if (mServiceContext.getResources().getBoolean(R.bool.enable_push_id)) {
Compatibility.initPushNotificationService(mServiceContext);
}