mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 05:20:14 -07:00
Fix log
This commit is contained in:
parent
9e55cd329a
commit
fcfc4f16cb
6 changed files with 43 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue