From a45615b1feb313b10f8278193c0d502e18ae7d9d Mon Sep 17 00:00:00 2001 From: Pilot_51 Date: Tue, 26 Jun 2012 04:26:11 -0400 Subject: [PATCH] Fix crash when opening Options & on exit in API 15. ADT 17 update: .classpath & BuildConfig.java --- .classpath | 1 + gen/com/pilot51/lander/BuildConfig.java | 6 ++++++ src/com/pilot51/lander/LanderView.java | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 gen/com/pilot51/lander/BuildConfig.java diff --git a/.classpath b/.classpath index 6c635c0..6aed2eb 100644 --- a/.classpath +++ b/.classpath @@ -3,5 +3,6 @@ + diff --git a/gen/com/pilot51/lander/BuildConfig.java b/gen/com/pilot51/lander/BuildConfig.java new file mode 100644 index 0000000..7b35a3e --- /dev/null +++ b/gen/com/pilot51/lander/BuildConfig.java @@ -0,0 +1,6 @@ +/** Automatically generated file. DO NOT MODIFY */ +package com.pilot51.lander; + +public final class BuildConfig { + public final static boolean DEBUG = true; +} \ No newline at end of file diff --git a/src/com/pilot51/lander/LanderView.java b/src/com/pilot51/lander/LanderView.java index 1f852d5..135c211 100644 --- a/src/com/pilot51/lander/LanderView.java +++ b/src/com/pilot51/lander/LanderView.java @@ -414,7 +414,7 @@ public void run() { updateLander(); lastUpdate = now; } - doDraw(c); + if (mRun) doDraw(c); } } finally { // do this in a finally so that if an exception is thrown