mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Fixed tslint.
This commit is contained in:
@ -112,14 +112,13 @@ export class EditableTextBase extends common.EditableTextBase {
|
|||||||
public focus(): boolean {
|
public focus(): boolean {
|
||||||
var result = super.focus();
|
var result = super.focus();
|
||||||
|
|
||||||
if (result && this.android) {
|
if (result && this._nativeView) {
|
||||||
this._imm.showSoftInput(this.android, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
this._imm.showSoftInput(this._nativeView, android.view.inputmethod.InputMethodManager.SHOW_IMPLICIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
public _onTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||||
if (this._android) {
|
if (this._android) {
|
||||||
this.android.setText(data.newValue + "", android.widget.TextView.BufferType.EDITABLE);
|
this.android.setText(data.newValue + "", android.widget.TextView.BufferType.EDITABLE);
|
||||||
|
Reference in New Issue
Block a user