Android: Partly revert r29569 and only call the new getJavaEnvironment() when needed.
commit14354a7d68c43d2d8ae4391af44a355dfcccd04e
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 16 Mar 2011 14:33:55 +0000 (16 14:33 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 16 Mar 2011 14:33:55 +0000 (16 14:33 +0000)
treecb0ba0773a3e8b3cef5d7690e2822f03d1425ddb
parent9f30cb55486ddee4a976532020dc174151c65884
Android: Partly revert r29569 and only call the new getJavaEnvironment() when needed.

The environment is fine to share in general, just not across OS threads, so it's only needed
for functions which are possibly called from multiple OS threads (only 1 currently).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29601 a1c6a512-1295-4272-9138-f99709370657
apps/hosted/android/keyboard.c
apps/hosted/android/notification.c
apps/hosted/android/yesno.c
firmware/target/hosted/android/button-android.c
firmware/target/hosted/android/lcd-android.c
firmware/target/hosted/android/pcm-android.c
firmware/target/hosted/android/powermgmt-android.c
firmware/target/hosted/android/system-android.c
firmware/target/hosted/android/system-target.h
firmware/target/hosted/android/telephony-android.c