diff --git a/src/Android/Android.csproj b/src/Android/Android.csproj index dc7da72bc..a514138f6 100644 --- a/src/Android/Android.csproj +++ b/src/Android/Android.csproj @@ -110,6 +110,7 @@ + diff --git a/src/Android/Effects/SelectableLabelEffect.cs b/src/Android/Effects/SelectableLabelEffect.cs new file mode 100644 index 000000000..7cacfb803 --- /dev/null +++ b/src/Android/Effects/SelectableLabelEffect.cs @@ -0,0 +1,26 @@ +using Android.Support.Design.BottomNavigation; +using Android.Support.Design.Widget; +using Android.Views; +using Android.Widget; +using Bit.Droid.Effects; +using Xamarin.Forms; +using Xamarin.Forms.Platform.Android; + +[assembly: ExportEffect(typeof(SelectableLabelEffect), "SelectableLabelEffect")] +namespace Bit.Droid.Effects +{ + public class SelectableLabelEffect : PlatformEffect + { + protected override void OnAttached() + { + if(Control is TextView textView) + { + textView.SetTextIsSelectable(true); + } + } + + protected override void OnDetached() + { + } + } +} \ No newline at end of file diff --git a/src/App/Effects/SelectableLabelEffect.cs b/src/App/Effects/SelectableLabelEffect.cs new file mode 100644 index 000000000..3f53ba706 --- /dev/null +++ b/src/App/Effects/SelectableLabelEffect.cs @@ -0,0 +1,11 @@ +using Xamarin.Forms; + +namespace Bit.App.Effects +{ + public class SelectableLabelEffect : RoutingEffect + { + public SelectableLabelEffect() + : base("Bitwarden.SelectableLabelEffect") + { } + } +} diff --git a/src/App/Effect/TabBarEffect.cs b/src/App/Effects/TabBarEffect.cs similarity index 87% rename from src/App/Effect/TabBarEffect.cs rename to src/App/Effects/TabBarEffect.cs index 28e7c278d..231c35138 100644 --- a/src/App/Effect/TabBarEffect.cs +++ b/src/App/Effects/TabBarEffect.cs @@ -1,6 +1,6 @@ using Xamarin.Forms; -namespace Bit.App.Effect +namespace Bit.App.Effects { public class TabBarEffect : RoutingEffect { diff --git a/src/App/Pages/TabsPage.cs b/src/App/Pages/TabsPage.cs index 96577539b..b3a239da9 100644 --- a/src/App/Pages/TabsPage.cs +++ b/src/App/Pages/TabsPage.cs @@ -1,8 +1,6 @@ -using Bit.App.Effect; +using Bit.App.Effects; using Bit.App.Models; using Bit.App.Resources; -using Bit.Core.Abstractions; -using Bit.Core.Utilities; using Xamarin.Forms; namespace Bit.App.Pages diff --git a/src/App/Pages/Vault/ViewPage.xaml b/src/App/Pages/Vault/ViewPage.xaml index 1a906d35f..d26b7dac0 100644 --- a/src/App/Pages/Vault/ViewPage.xaml +++ b/src/App/Pages/Vault/ViewPage.xaml @@ -6,6 +6,7 @@ xmlns:pages="clr-namespace:Bit.App.Pages" xmlns:u="clr-namespace:Bit.App.Utilities" xmlns:controls="clr-namespace:Bit.App.Controls" + xmlns:effects="clr-namespace:Bit.App.Effects" xmlns:fab="clr-namespace:Refractored.FabControl;assembly=Refractored.FabControl" xmlns:views="clr-namespace:Bit.Core.Models.View;assembly=BitwardenCore" x:DataType="pages:ViewPageViewModel" @@ -480,7 +481,11 @@