From 4e55e974f8092ccb00d2cbae4da25bf9f32f732e Mon Sep 17 00:00:00 2001 From: DrKLO Date: Thu, 2 Jan 2020 01:29:20 +0300 Subject: [PATCH] Update to 5.13.0 (1821) --- TMessagesProj/build.gradle | 2 +- TMessagesProj/src/main/AndroidManifest.xml | 2 -- .../src/main/java/org/telegram/messenger/BuildVars.java | 2 +- .../main/java/org/telegram/ui/Components/RadialProgress2.java | 4 ++-- .../src/main/java/org/telegram/ui/LocationActivity.java | 4 ++-- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/TMessagesProj/build.gradle b/TMessagesProj/build.gradle index 11ac42293..2e4448575 100644 --- a/TMessagesProj/build.gradle +++ b/TMessagesProj/build.gradle @@ -283,7 +283,7 @@ android { } } - defaultConfig.versionCode = 1819 + defaultConfig.versionCode = 1821 applicationVariants.all { variant -> variant.outputs.all { output -> diff --git a/TMessagesProj/src/main/AndroidManifest.xml b/TMessagesProj/src/main/AndroidManifest.xml index 1baa9f681..ef2db0d88 100644 --- a/TMessagesProj/src/main/AndroidManifest.xml +++ b/TMessagesProj/src/main/AndroidManifest.xml @@ -385,8 +385,6 @@ android:name=".voip.CallNotificationSoundProvider" android:exported="true"/> - - diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java b/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java index 1fbf707f5..e560294d7 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java @@ -19,7 +19,7 @@ public class BuildVars { public static boolean USE_CLOUD_STRINGS = true; public static boolean CHECK_UPDATES = true; public static boolean TON_WALLET_STANDALONE = false; - public static int BUILD_VERSION = 1820; + public static int BUILD_VERSION = 1821; public static String BUILD_VERSION_STRING = "5.13.0"; public static int APP_ID = 4; public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103"; diff --git a/TMessagesProj/src/main/java/org/telegram/ui/Components/RadialProgress2.java b/TMessagesProj/src/main/java/org/telegram/ui/Components/RadialProgress2.java index 13ca0af99..2f94eddaa 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/Components/RadialProgress2.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/Components/RadialProgress2.java @@ -330,8 +330,8 @@ public class RadialProgress2 { int centerX; int centerY; if (drawMiniIcon && miniDrawCanvas != null) { - centerX = (int) (progressRect.width() / 2); - centerY = (int) (progressRect.height() / 2); + centerX = (int) Math.ceil(progressRect.width() / 2); + centerY = (int) Math.ceil(progressRect.height() / 2); } else { centerX = (int) progressRect.centerX(); centerY = (int) progressRect.centerY(); diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java index e7ab9bf2c..ecc19a516 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LocationActivity.java @@ -962,7 +962,8 @@ public class LocationActivity extends BaseFragment implements NotificationCenter public boolean dispatchTouchEvent(MotionEvent ev) { MotionEvent eventToRecycle = null; if (yOffset != 0) { - ev = eventToRecycle = MotionEvent.obtain(ev.getDownTime(), ev.getEventTime(), ev.getAction(), ev.getX(), ev.getY() - yOffset / 2, ev.getMetaState()); + ev = eventToRecycle = MotionEvent.obtain(ev); + eventToRecycle.offsetLocation(0, -yOffset / 2); } boolean result = super.dispatchTouchEvent(ev); if (eventToRecycle != null) { @@ -1008,7 +1009,6 @@ public class LocationActivity extends BaseFragment implements NotificationCenter adapter.setCustomLocation(userLocation); } } - //FileLog.d("evY = " + ev.getY()); return super.onInterceptTouchEvent(ev); } };