This commit is contained in:
khanhduytran0 2020-09-08 13:59:47 +07:00
parent 9e55cd329a
commit fcfc4f16cb
6 changed files with 43 additions and 52 deletions

View file

@ -844,8 +844,8 @@ public class MainActivity extends AppCompatActivity implements OnTouchListener,
public void onEvent(int event, String file) {
try {
if (event == FileObserver.MODIFY && currLogFile.length() > 0l) {
appendToLog(Tools.read(file));
Tools.write(file, "");
appendToLog(Tools.read(currLogFile.getAbsolutePath()));
Tools.write(currLogFile.getAbsolutePath(), "");
}
} catch (Throwable th) {
Tools.showError(MainActivity.this, th);