mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-09 08:33:08 +08:00
CB-8510 Move requestFocusFromTouch into createViews from init()
Makes more sense there since it's view-creation-related
This commit is contained in:
parent
087ec11e6a
commit
d99856c52b
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user