File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Android/Avalonia.Android/Platform/Input Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -279,20 +279,20 @@ public CapitalizationMode GetCursorCapsMode([GeneratedEnum] CapitalizationMode r
279
279
280
280
public ICharSequence ? GetSelectedTextFormatted ( [ GeneratedEnum ] GetTextFlags flags )
281
281
{
282
- return new SpannableString ( _editBuffer . SelectedText ) ;
282
+ return new Java . Lang . String ( _editBuffer . SelectedText ?? "" ) ;
283
283
}
284
284
285
285
public ICharSequence ? GetTextAfterCursorFormatted ( int n , [ GeneratedEnum ] GetTextFlags flags )
286
286
{
287
287
var end = Math . Min ( _editBuffer . Selection . End , _editBuffer . Text . Length ) ;
288
- return new SpannableString ( _editBuffer . Text . Substring ( end , Math . Min ( n , _editBuffer . Text . Length - end ) ) ) ;
288
+ return new Java . Lang . String ( _editBuffer . Text . Substring ( end , Math . Min ( n , _editBuffer . Text . Length - end ) ) ) ;
289
289
}
290
290
291
291
public ICharSequence ? GetTextBeforeCursorFormatted ( int n , [ GeneratedEnum ] GetTextFlags flags )
292
292
{
293
293
var start = Math . Max ( 0 , _editBuffer . Selection . Start - n ) ;
294
294
var length = _editBuffer . Selection . Start - start ;
295
- return _editBuffer . Text == null ? null : new SpannableString ( _editBuffer . Text . Substring ( start , length ) ) ;
295
+ return _editBuffer . Text == null ? null : new Java . Lang . String ( _editBuffer . Text . Substring ( start , length ) ) ;
296
296
}
297
297
298
298
public bool PerformPrivateCommand ( string ? action , Bundle ? data )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public string? ComposingText
96
96
SelectionStart = Selection . Start ,
97
97
SelectionEnd = Selection . End ,
98
98
StartOffset = 0 ,
99
- Text = new SpannableString ( Text )
99
+ Text = new Java . Lang . String ( Text )
100
100
} ;
101
101
102
102
internal void Remove ( int index , int length )
You can’t perform that action at this time.
0 commit comments