Catch an exception

This commit is contained in:
khanhduytran0 2020-09-09 13:11:13 +07:00
parent 42357626cf
commit 130ea87366

View File

@ -253,7 +253,10 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
@Override @Override
public void onCheckedChanged(CompoundButton button, boolean isChecked) public void onCheckedChanged(CompoundButton button, boolean isChecked)
{ {
if (isChecked) Tools.write(currLogFile.getAbsolutePath(), ""); try {
if (isChecked) Tools.write(currLogFile.getAbsolutePath(), "");
} catch (Exception e) {}
isLogAllow = isChecked; isLogAllow = isChecked;
appendToLog(""); appendToLog("");
} }