From a001fd3e0300e5e902b93242ecc766a466d89c02 Mon Sep 17 00:00:00 2001 From: Laky64 <35636667+Laky-64@users.noreply.github.com> Date: Thu, 31 Mar 2022 17:23:18 +0200 Subject: [PATCH] Fix GooglePlayService Deprecation --- .../src/main/java/org/telegram/messenger/ApplicationLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java b/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java index 78747ac02..875139e18 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java @@ -304,7 +304,7 @@ public class ApplicationLoader extends Application { private boolean checkPlayServices() { try { - int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); + int resultCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this); return resultCode == ConnectionResult.SUCCESS; } catch (Exception e) { FileLog.e(e);