fix(android): autofillType on apiLevel < 26

This commit is contained in:
Martin Guillon
2021-10-13 13:45:08 +02:00
parent 709c4bf04e
commit b945d5a665
2 changed files with 2 additions and 7 deletions

View File

@ -15,7 +15,7 @@ export interface ComponentModule {
exports: any;
}
const legacyShortBarrels = [
const legacyShortBarrels = __UI_USE_EXTERNAL_RENDERER__?[]:[
'text/formatted-string',
'text/span',
'ui/text-base/formatted-string',

View File

@ -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);
}
@ -308,7 +303,7 @@ export abstract class EditableTextBase extends EditableTextBaseCommon {
}
[autofillTypeProperty.setNative](value: CoreTypes.AutofillType) {
if (apiLevel < 26) {
if (sdkVersion() < 26) {
return;
}
let newOptions;