am 162ec999: Merge change 24635 into eclair
Merge commit '162ec9993e9695946a6b954fd53eebb63e055540' into eclair-plus-aosp * commit '162ec9993e9695946a6b954fd53eebb63e055540': Fix issue #1983406: Soft keyboard doesn't show up in an EditText with "digits" attribute set
This commit is contained in:
@@ -185,7 +185,7 @@ public abstract class AccessibilityService extends Service {
|
|||||||
|
|
||||||
private final HandlerCaller mCaller;
|
private final HandlerCaller mCaller;
|
||||||
|
|
||||||
private AccessibilityService mTarget;
|
private final AccessibilityService mTarget;
|
||||||
|
|
||||||
public IEventListenerWrapper(AccessibilityService context) {
|
public IEventListenerWrapper(AccessibilityService context) {
|
||||||
mTarget = context;
|
mTarget = context;
|
||||||
@@ -211,9 +211,9 @@ public abstract class AccessibilityService extends Service {
|
|||||||
switch (message.what) {
|
switch (message.what) {
|
||||||
case DO_ON_ACCESSIBILITY_EVENT :
|
case DO_ON_ACCESSIBILITY_EVENT :
|
||||||
AccessibilityEvent event = (AccessibilityEvent) message.obj;
|
AccessibilityEvent event = (AccessibilityEvent) message.obj;
|
||||||
if (event != null){
|
if (event != null) {
|
||||||
mTarget.onAccessibilityEvent(event);
|
mTarget.onAccessibilityEvent(event);
|
||||||
event.recycle();
|
event.recycle();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case DO_ON_INTERRUPT :
|
case DO_ON_INTERRUPT :
|
||||||
|
|||||||
@@ -732,7 +732,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
}
|
}
|
||||||
} else if (digits != null) {
|
} else if (digits != null) {
|
||||||
mInput = DigitsKeyListener.getInstance(digits.toString());
|
mInput = DigitsKeyListener.getInstance(digits.toString());
|
||||||
mInputType = inputType;
|
// If no input type was specified, we will default to generic
|
||||||
|
// text, since we can't tell the IME about the set of digits
|
||||||
|
// that was selected.
|
||||||
|
mInputType = inputType != EditorInfo.TYPE_NULL
|
||||||
|
? inputType : EditorInfo.TYPE_CLASS_TEXT;
|
||||||
} else if (inputType != EditorInfo.TYPE_NULL) {
|
} else if (inputType != EditorInfo.TYPE_NULL) {
|
||||||
setInputType(inputType, true);
|
setInputType(inputType, true);
|
||||||
singleLine = (inputType&(EditorInfo.TYPE_MASK_CLASS
|
singleLine = (inputType&(EditorInfo.TYPE_MASK_CLASS
|
||||||
|
|||||||
Reference in New Issue
Block a user