mirror of
https://github.com/bitwarden/android.git
synced 2024-12-26 19:08:32 +03:00
Improve TOTP scan performance on Android
This commit is contained in:
parent
66f0471f2e
commit
55fb71744d
1 changed files with 7 additions and 0 deletions
|
@ -54,6 +54,13 @@ namespace Bit.App.Pages
|
|||
{
|
||||
if (_cameraView == null) { return; }
|
||||
|
||||
if (DeviceInfo.Platform == DevicePlatform.Android)
|
||||
{
|
||||
// Reduce the size of the camera view to improve performance, scale it up to fill the space
|
||||
_cameraView.WidthRequest = _cameraView.HeightRequest = 150;
|
||||
_cameraView.Scale = 4;
|
||||
}
|
||||
|
||||
ViewModel.StartCameraCommand?.Execute(this);
|
||||
|
||||
_pageIsActive = true;
|
||||
|
|
Loading…
Reference in a new issue