Allow enabling debug messages

This commit is contained in:
M66B
2020-04-05 14:10:42 +02:00
parent 8eb38aefef
commit dc7271b5c1
3 changed files with 16 additions and 3 deletions

View File

@@ -259,6 +259,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
prefs.edit().putBoolean("debug", checked).apply();
Log.setDebug(checked);
grpDebug.setVisibility(checked || BuildConfig.DEBUG ? View.VISIBLE : View.GONE);
}
});