From 2dfb7b6f203b782e293f97f2973219f4fbd144f8 Mon Sep 17 00:00:00 2001
From: Oleg Korshul <Oleg.Korshul@onlyoffice.com>
Date: Tue, 7 Mar 2017 15:40:03 +0300
Subject: [PATCH] android retina bug

---
 common/browser.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/browser.js b/common/browser.js
index c0d6043bb..bc5383409 100644
--- a/common/browser.js
+++ b/common/browser.js
@@ -116,7 +116,8 @@ AscBrowser.checkZoom = function()
 {
     if (AscBrowser.isAndroid)
 	{
-		AscBrowser.isRetina = (Math.abs(2 - (window.devicePixelRatio / AscBrowser.zoom)) < 0.01);
+		AscBrowser.isRetina = (window.devicePixelRatio >= 1.9);
+		AscBrowser.retinaPixelRatio = window.devicePixelRatio;
 		return;
 	}
 
-- 
2.30.9