summaryrefslogtreecommitdiffstats
path: root/android/src/org/rockbox
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/org/rockbox')
-rw-r--r--android/src/org/rockbox/RockboxActivity.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/android/src/org/rockbox/RockboxActivity.java b/android/src/org/rockbox/RockboxActivity.java
index 0e2daa76fb..a6604418ed 100644
--- a/android/src/org/rockbox/RockboxActivity.java
+++ b/android/src/org/rockbox/RockboxActivity.java
@@ -60,11 +60,14 @@ public class RockboxActivity extends Activity
@Override
protected void onReceiveResult(final int resultCode, final Bundle resultData)
{
+ RockboxFramebuffer fb;
switch (resultCode) {
case RockboxService.RESULT_INVOKING_MAIN:
if (loadingdialog != null)
loadingdialog.dismiss();
- setContentView(new RockboxFramebuffer(RockboxActivity.this));
+ fb = new RockboxFramebuffer(RockboxActivity.this);
+ setContentView(fb);
+ fb.requestFocus();
break;
case RockboxService.RESULT_LIB_LOAD_PROGRESS:
if (loadingdialog == null)
@@ -78,7 +81,11 @@ public class RockboxActivity extends Activity
break;
case RockboxService.RESULT_SERVICE_RUNNING:
if (!unzip) /* defer to RESULT_INVOKING_MAIN */
- setContentView(new RockboxFramebuffer(RockboxActivity.this));
+ {
+ fb = new RockboxFramebuffer(RockboxActivity.this);
+ setContentView(fb);
+ fb.requestFocus();
+ }
setServiceActivity(true);
break;
case RockboxService.RESULT_ERROR_OCCURED: