diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java index 5f68333f..654f3b97 100755 --- a/framework/src/org/apache/cordova/CordovaActivity.java +++ b/framework/src/org/apache/cordova/CordovaActivity.java @@ -146,8 +146,6 @@ public class CordovaActivity extends Activity { if ("media".equals(volumePref.toLowerCase(Locale.ENGLISH))) { setVolumeControlStream(AudioManager.STREAM_MUSIC); } - - appView.getView().requestFocusFromTouch(); } @SuppressWarnings("deprecation") @@ -189,6 +187,7 @@ public class CordovaActivity extends Activity { int backgroundColor = preferences.getInteger("BackgroundColor", Color.BLACK); root.setBackgroundColor(backgroundColor); + appView.getView().requestFocusFromTouch(); } /** diff --git a/framework/src/org/apache/cordova/CordovaWebViewImpl.java b/framework/src/org/apache/cordova/CordovaWebViewImpl.java index aa816fbe..8efb1e08 100644 --- a/framework/src/org/apache/cordova/CordovaWebViewImpl.java +++ b/framework/src/org/apache/cordova/CordovaWebViewImpl.java @@ -278,8 +278,8 @@ public class CordovaWebViewImpl implements CordovaWebView { @Deprecated public void hideCustomView() { // This code is adapted from the original Android Browser code, licensed under the Apache License, Version 2.0 - Log.d(TAG, "Hiding Custom View"); if (mCustomView == null) return; + Log.d(TAG, "Hiding Custom View"); // Hide the custom view. mCustomView.setVisibility(View.GONE);