mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
* PS-689 Added back buttons accessibility text * PS-689 Changed resource key from "GoBack" to "TapToGoBack" * PS-689: class rename
32 lines
880 B
C#
32 lines
880 B
C#
using System;
|
|
using Android.App;
|
|
using Android.Content;
|
|
using AndroidX.AppCompat.Widget;
|
|
using Bit.App.Resources;
|
|
using Bit.Droid.Renderers;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Platform.Android;
|
|
|
|
[assembly: ExportRenderer(typeof(ContentPage), typeof(CustomPageRenderer))]
|
|
namespace Bit.Droid.Renderers
|
|
{
|
|
public class CustomPageRenderer : PageRenderer
|
|
{
|
|
public CustomPageRenderer(Context context) : base(context)
|
|
{
|
|
}
|
|
|
|
protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
|
|
{
|
|
base.OnElementChanged(e);
|
|
|
|
Activity context = (Activity)this.Context;
|
|
var toolbar = context.FindViewById<Toolbar>(Resource.Id.toolbar);
|
|
if(toolbar != null)
|
|
{
|
|
toolbar.NavigationContentDescription = AppResources.TapToGoBack;
|
|
}
|
|
}
|
|
}
|
|
}
|