mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 17:15:40 -04:00
Catch an exception
This commit is contained in:
parent
42357626cf
commit
130ea87366
@ -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)
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
if (isChecked) Tools.write(currLogFile.getAbsolutePath(), "");
|
if (isChecked) Tools.write(currLogFile.getAbsolutePath(), "");
|
||||||
|
} catch (Exception e) {}
|
||||||
|
|
||||||
isLogAllow = isChecked;
|
isLogAllow = isChecked;
|
||||||
appendToLog("");
|
appendToLog("");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user