mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): autofillType on apiLevel < 26 (#9610)
* chore: rollback unwanted change
This commit is contained in:
@@ -143,8 +143,6 @@ function initializeEditTextListeners(): void {
|
||||
EditTextListeners = EditTextListenersImpl;
|
||||
}
|
||||
|
||||
let apiLevel: number;
|
||||
|
||||
export abstract class EditableTextBase extends EditableTextBaseCommon {
|
||||
/* tslint:disable */
|
||||
_dirtyTextAccumulator: string;
|
||||
@@ -164,9 +162,6 @@ export abstract class EditableTextBase extends EditableTextBaseCommon {
|
||||
}
|
||||
|
||||
public createNativeView() {
|
||||
if (!apiLevel) {
|
||||
apiLevel = sdkVersion();
|
||||
}
|
||||
return new android.widget.EditText(this._context);
|
||||
}
|
||||
|
||||
@@ -304,7 +299,7 @@ export abstract class EditableTextBase extends EditableTextBaseCommon {
|
||||
}
|
||||
|
||||
[autofillTypeProperty.setNative](value: CoreTypes.AutofillType) {
|
||||
if (apiLevel < 26) {
|
||||
if (sdkVersion() < 26) {
|
||||
return;
|
||||
}
|
||||
let newOptions;
|
||||
|
||||
Reference in New Issue
Block a user