am 7cabb03d: Resize the WebView when the soft-keyboard appears in landscape mode.
Merge commit '7cabb03da7053f3ceb5ff8b41b6a46052c6658a1' into eclair-mr2-plus-aosp * commit '7cabb03da7053f3ceb5ff8b41b6a46052c6658a1': Resize the WebView when the soft-keyboard appears in landscape mode.
This commit is contained in:
@@ -58,6 +58,8 @@ import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import android.view.ViewTreeObserver;
|
||||
import android.view.animation.AlphaAnimation;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.webkit.WebTextView.AutoCompleteAdapter;
|
||||
import android.webkit.WebViewCore.EventHub;
|
||||
@@ -3196,6 +3198,13 @@ public class WebView extends AbsoluteLayout
|
||||
mWebViewCore.sendMessage(EventHub.SET_SELECTION, start, end);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
||||
InputConnection connection = super.onCreateInputConnection(outAttrs);
|
||||
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_FULLSCREEN;
|
||||
return connection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called in response to a message from webkit telling us that the soft
|
||||
* keyboard should be launched.
|
||||
|
||||
Reference in New Issue
Block a user