mirror of
https://github.com/bitwarden/mobile
synced 2026-01-10 12:33:28 +00:00
24 lines
605 B
C#
24 lines
605 B
C#
using System;
|
|
using Android.Content;
|
|
using Bit.App.Controls;
|
|
using Microsoft.Maui.Controls.Compatibility.Platform.Android;
|
|
using Microsoft.Maui.Controls.Platform;
|
|
|
|
namespace Bit.App.Droid.Renderers
|
|
{
|
|
public class SelectableLabelRenderer : LabelRenderer
|
|
{
|
|
public SelectableLabelRenderer(Context context) : base(context) { }
|
|
|
|
protected override void OnElementChanged(ElementChangedEventArgs<Label> e)
|
|
{
|
|
base.OnElementChanged(e);
|
|
|
|
if (Control != null)
|
|
{
|
|
Control.SetTextIsSelectable(true);
|
|
}
|
|
}
|
|
}
|
|
}
|