mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-14 03:30:53 +00:00
strict warnings about file I/O were getting annoying
This commit is contained in:
parent
55f04d4f68
commit
902cdff495
@ -36,6 +36,7 @@ public class Apple2Activity extends Activity {
|
|||||||
|
|
||||||
private final static String TAG = "Apple2Activity";
|
private final static String TAG = "Apple2Activity";
|
||||||
private final static int MAX_FINGERS = 32;// HACK ...
|
private final static int MAX_FINGERS = 32;// HACK ...
|
||||||
|
private static volatile boolean DEBUG_STRICT = false;
|
||||||
|
|
||||||
private boolean mSetUncaughtExceptionHandler = false;
|
private boolean mSetUncaughtExceptionHandler = false;
|
||||||
|
|
||||||
@ -166,7 +167,7 @@ public class Apple2Activity extends Activity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
if (BuildConfig.DEBUG) {
|
if (Apple2Activity.DEBUG_STRICT && BuildConfig.DEBUG) {
|
||||||
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
|
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
|
||||||
.detectDiskReads()
|
.detectDiskReads()
|
||||||
.detectDiskWrites()
|
.detectDiskWrites()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user