summaryrefslogtreecommitdiff
path: root/navit/speech
diff options
context:
space:
mode:
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-08-20 22:48:07 +0000
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-08-20 22:48:07 +0000
commit451dbd6500ab93ee22e94902559801df0097957d (patch)
treef0be10809f94ecd577cd43b12615db418a5b1455 /navit/speech
parente251ae18b5eb7d5bdc3d45e6052477cfa0d03b03 (diff)
downloadnavit-451dbd6500ab93ee22e94902559801df0097957d.tar.gz
Fix:speech/android:Fixed class not found error, when running on Android 1.5 (API 3)
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4691 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/speech')
-rw-r--r--navit/speech/android/speech_android.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/speech/android/speech_android.c b/navit/speech/android/speech_android.c
index db342d90e..d3834838a 100644
--- a/navit/speech/android/speech_android.c
+++ b/navit/speech/android/speech_android.c
@@ -128,12 +128,12 @@ speech_android_new(struct speech_methods *meth, struct attr **attrs, struct attr
struct attr *flags;
*meth=speech_android_meth;
this=g_new0(struct speech_priv,1);
+ if (android_version < 4)
+ this->flags=3;
if (!speech_android_init(this)) {
g_free(this);
this=NULL;
}
- if (android_version < 4)
- this->flags=3;
if ((flags = attr_search(attrs, NULL, attr_flags)))
this->flags=flags->u.num;