bug 876689 - Virtual keyboard does not invoke on text input field focus if 'Don't keep activities' is enabled r=jchen

This commit is contained in:
Brad Lassey 2013-06-06 14:05:32 -04:00
parent 68e7fbb19a
commit 40ef4be117
5 changed files with 4 additions and 8 deletions

View File

@ -206,7 +206,7 @@ public class FormAssistPopup extends RelativeLayout implements GeckoEventListene
sValidationMessageHeight = (int) (res.getDimension(R.dimen.validation_message_height));
}
ImmutableViewportMetrics viewportMetrics = GeckoAppShell.getGeckoInterface().getLayerView().getViewportMetrics();
ImmutableViewportMetrics viewportMetrics = GeckoAppShell.getLayerView().getViewportMetrics();
float zoom = viewportMetrics.zoomFactor;
// These values correspond to the input box for which we want to

View File

@ -153,7 +153,7 @@ public class GeckoAccessibility {
} else {
// In Jelly Bean we populate an AccessibilityNodeInfo with the minimal amount of data to have
// it work with TalkBack.
final LayerView view = GeckoAppShell.getGeckoInterface().getLayerView();
final LayerView view = GeckoAppShell.getLayerView();
if (view == null)
return;

View File

@ -1294,6 +1294,7 @@ abstract public class GeckoApp
LayerView layerView = (LayerView) findViewById(R.id.layer_view);
layerView.initializeView(GeckoAppShell.getEventDispatcher());
mLayerView = layerView;
GeckoAppShell.setLayerView(layerView);
// bind the GeckoEditable instance to the new LayerView
GeckoAppShell.notifyIMEContext(GeckoEditableListener.IME_STATE_DISABLED, "", "", "");
}

View File

@ -287,13 +287,9 @@ public class GeckoAppShell
// run gecko -- it will spawn its own thread
GeckoAppShell.nativeInit();
// Tell Gecko where the target byte buffer is for rendering
if (getGeckoInterface() != null)
sLayerView = getGeckoInterface().getLayerView();
if (sLayerView != null)
GeckoAppShell.setLayerClient(sLayerView.getLayerClient());
// First argument is the .apk path
String combinedArgs = apkPath + " -greomni " + apkPath;
if (args != null)
@ -2048,7 +2044,6 @@ public class GeckoAppShell
public interface GeckoInterface {
public GeckoProfile getProfile();
public LayerView getLayerView();
public PromptService getPromptService();
public Activity getActivity();
public String getDefaultUAString();

View File

@ -311,7 +311,7 @@ public class GeckoEvent {
event.mPoints = new Point[1];
PointF geckoPoint = new PointF(pt.x, pt.y);
geckoPoint = GeckoAppShell.getGeckoInterface().getLayerView().convertViewPointToLayerPoint(geckoPoint);
geckoPoint = GeckoAppShell.getLayerView().convertViewPointToLayerPoint(geckoPoint);
if (geckoPoint == null) {
// This could happen if Gecko isn't ready yet.