diff --git a/res/layout/about.xml b/res/layout/about.xml
index ccf860f9f..6ac3de681 100644
--- a/res/layout/about.xml
+++ b/res/layout/about.xml
@@ -61,13 +61,20 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/menu_send_log"/>
-
-
+
+
-
+
diff --git a/res/values/strings.xml b/res/values/strings.xml
index df4b7e94c..3e4852979 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -149,6 +149,7 @@
Send bug report with…
About
Send log
+ Reset log
Audio
Exit
Prefix
diff --git a/src/org/linphone/AboutFragment.java b/src/org/linphone/AboutFragment.java
index 8d92171b9..e19c2be33 100644
--- a/src/org/linphone/AboutFragment.java
+++ b/src/org/linphone/AboutFragment.java
@@ -40,6 +40,7 @@ public class AboutFragment extends Fragment implements OnClickListener {
private FragmentsAvailable about = FragmentsAvailable.ABOUT_INSTEAD_OF_CHAT;
View exitButton = null;
View sendLogButton = null;
+ View resetLogButton = null;
private LinphoneCoreListenerBase mListener;
@Override
@@ -61,6 +62,10 @@ public class AboutFragment extends Fragment implements OnClickListener {
sendLogButton.setOnClickListener(this);
sendLogButton.setVisibility(LinphonePreferences.instance().isDebugEnabled() ? View.VISIBLE : View.GONE);
+ resetLogButton = view.findViewById(R.id.reset_log);
+ resetLogButton.setOnClickListener(this);
+ resetLogButton.setVisibility(LinphonePreferences.instance().isDebugEnabled() ? View.VISIBLE : View.GONE);
+
exitButton = view.findViewById(R.id.exit);
exitButton.setOnClickListener(this);
exitButton.setVisibility(View.VISIBLE);
@@ -118,12 +123,16 @@ public class AboutFragment extends Fragment implements OnClickListener {
@Override
public void onClick(View v) {
if (LinphoneActivity.isInstanciated()) {
+ LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
if (v == sendLogButton) {
//LinphoneUtils.collectLogs(LinphoneActivity.instance(), getString(R.string.about_bugreport_email));
- LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
if (lc != null) {
lc.uploadLogCollection();
}
+ } else if (v == resetLogButton) {
+ if (lc != null) {
+ lc.resetLogCollection();
+ }
} else {
LinphoneActivity.instance().exit();
}