Add database for calllogs
This commit is contained in:
parent
41d998beb9
commit
92939a7028
2 changed files with 3 additions and 60 deletions
|
@ -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(){
|
public void quitEditMode(){
|
||||||
isEditMode = false;
|
isEditMode = false;
|
||||||
editList.setVisibility(View.GONE);
|
editList.setVisibility(View.GONE);
|
||||||
|
|
|
@ -649,6 +649,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
mLc.setRootCA(mLinphoneRootCaFile);
|
mLc.setRootCA(mLinphoneRootCaFile);
|
||||||
mLc.setPlayFile(mPauseSoundFile);
|
mLc.setPlayFile(mPauseSoundFile);
|
||||||
mLc.setChatDatabasePath(mChatDatabaseFile);
|
mLc.setChatDatabasePath(mChatDatabaseFile);
|
||||||
|
mLc.setCallLogsDatabasePath(mCallLogDatabaseFile);
|
||||||
//mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile);
|
//mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile);
|
||||||
|
|
||||||
int availableCores = Runtime.getRuntime().availableProcessors();
|
int availableCores = Runtime.getRuntime().availableProcessors();
|
||||||
|
@ -658,6 +659,8 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
|
||||||
int migrationResult = getLc().migrateToMultiTransport();
|
int migrationResult = getLc().migrateToMultiTransport();
|
||||||
Log.d("Migration to multi transport result = " + migrationResult);
|
Log.d("Migration to multi transport result = " + migrationResult);
|
||||||
|
|
||||||
|
mLc.migrateCallLogs();
|
||||||
|
|
||||||
if (mServiceContext.getResources().getBoolean(R.bool.enable_push_id)) {
|
if (mServiceContext.getResources().getBoolean(R.bool.enable_push_id)) {
|
||||||
Compatibility.initPushNotificationService(mServiceContext);
|
Compatibility.initPushNotificationService(mServiceContext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue