mirror of
https://github.com/bitwarden/mobile
synced 2025-12-31 15:43:19 +00:00
Proper conditions for push reregistration. Added fix for app compat crash on resume from sleep while app was open.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
using Bit.App.Abstractions;
|
||||
using AndrodApp = Android.App.Application;
|
||||
using AndroidApp = Android.App.Application;
|
||||
|
||||
namespace Bit.Android.Services
|
||||
{
|
||||
public class AppInfoService : IAppInfoService
|
||||
{
|
||||
public string Version => AndrodApp.Context.ApplicationContext.PackageManager
|
||||
.GetPackageInfo(AndrodApp.Context.PackageName, 0).VersionName;
|
||||
public string Version => AndroidApp.Context.ApplicationContext.PackageManager
|
||||
.GetPackageInfo(AndroidApp.Context.PackageName, 0).VersionName;
|
||||
|
||||
public string Build => AndrodApp.Context.ApplicationContext.PackageManager
|
||||
.GetPackageInfo(AndrodApp.Context.PackageName, 0).VersionCode.ToString();
|
||||
public string Build => AndroidApp.Context.ApplicationContext.PackageManager
|
||||
.GetPackageInfo(AndroidApp.Context.PackageName, 0).VersionCode.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user