Fixed tslint.

This commit is contained in:
Rossen Hristov
2015-04-23 12:04:55 +03:00
parent 2f43a63563
commit e29662cac6

View File

@ -112,14 +112,13 @@ export class EditableTextBase extends common.EditableTextBase {
public focus(): boolean {
var result = super.focus();
if (result && this.android) {
this._imm.showSoftInput(this.android, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
if (result && this._nativeView) {
this._imm.showSoftInput(this._nativeView, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
}
return result;
}
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
if (this._android) {
this.android.setText(data.newValue + "", android.widget.TextView.BufferType.EDITABLE);