summaryrefslogtreecommitdiff
path: root/android/src
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-11-05 23:52:26 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-11-05 23:52:26 +0000
commit1b477de3cb3b310d79a4addfa566e8c89cf13081 (patch)
tree57d1d391174731d868e52cad904fa96955224207 /android/src
parentfe2be33318dc8d83778708da468369e1e4f79cbe (diff)
Android: don't display the loading screen etc. when the library is already loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28510 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/src')
-rw-r--r--android/src/org/rockbox/RockboxActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/org/rockbox/RockboxActivity.java b/android/src/org/rockbox/RockboxActivity.java
index ec22885c51..c9681e306c 100644
--- a/android/src/org/rockbox/RockboxActivity.java
+++ b/android/src/org/rockbox/RockboxActivity.java
@@ -49,6 +49,10 @@ public class RockboxActivity extends Activity
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
+ /* Do not try starting the service if it's already running */
+ if (isRockboxRunning())
+ return;
+
/* prepare a please wait dialog in case we need
* to wait for unzipping libmisc.so
*/