1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-10 05:13:31 +00:00

api error detection updates

This commit is contained in:
Kyle Spearrin
2019-04-19 09:11:17 -04:00
parent 0c93fc2662
commit 8c8fa8ae4c
6 changed files with 52 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
using System.Threading.Tasks;
using Android.App;
using Bit.App.Abstractions;
using Bit.Core.Enums;
using Plugin.CurrentActivity;
namespace Bit.Droid.Services
@@ -10,6 +11,8 @@ namespace Bit.Droid.Services
private ProgressDialog _progressDialog;
private Android.Widget.Toast _toast;
public DeviceType DeviceType => DeviceType.Android;
public void Toast(string text, bool longDuration = false)
{
if(_toast != null)