fix(android): version Android text-align justify

This commit is contained in:
Martin Guillon
2022-01-12 15:25:56 +01:00
parent cdb597890b
commit 3c049dbfa6

View File

@ -296,7 +296,7 @@ export class TextBase extends TextBaseCommon {
this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity); this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity);
break; break;
} }
if (android.os.Build.VERSION.SDK_INT >= 25) { if (android.os.Build.VERSION.SDK_INT >= 26) {
if (value === 'justify') { if (value === 'justify') {
this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD); this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD);
} else { } else {