Clear log on disabling protocol logging

This commit is contained in:
M66B
2021-06-04 13:17:57 +02:00
parent ee11063b57
commit a3000b223e

View File

@@ -554,6 +554,8 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("protocol", checked).apply();
if (!checked)
EntityLog.clear(compoundButton.getContext());
}
});