Update to 5.13.0 (1821)

This commit is contained in:
DrKLO 2020-01-02 01:29:20 +03:00
parent 1eea3ab6f7
commit 4e55e974f8
5 changed files with 6 additions and 8 deletions

View file

@ -283,7 +283,7 @@ android {
} }
} }
defaultConfig.versionCode = 1819 defaultConfig.versionCode = 1821
applicationVariants.all { variant -> applicationVariants.all { variant ->
variant.outputs.all { output -> variant.outputs.all { output ->

View file

@ -385,8 +385,6 @@
android:name=".voip.CallNotificationSoundProvider" android:name=".voip.CallNotificationSoundProvider"
android:exported="true"/> android:exported="true"/>
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<uses-library android:name="com.sec.android.app.multiwindow" android:required="false" /> <uses-library android:name="com.sec.android.app.multiwindow" android:required="false" />
<meta-data android:name="com.sec.android.support.multiwindow" android:value="true" /> <meta-data android:name="com.sec.android.support.multiwindow" android:value="true" />
<meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632dp" /> <meta-data android:name="com.sec.android.multiwindow.DEFAULT_SIZE_W" android:value="632dp" />

View file

@ -19,7 +19,7 @@ public class BuildVars {
public static boolean USE_CLOUD_STRINGS = true; public static boolean USE_CLOUD_STRINGS = true;
public static boolean CHECK_UPDATES = true; public static boolean CHECK_UPDATES = true;
public static boolean TON_WALLET_STANDALONE = false; 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 String BUILD_VERSION_STRING = "5.13.0";
public static int APP_ID = 4; public static int APP_ID = 4;
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103"; public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";

View file

@ -330,8 +330,8 @@ public class RadialProgress2 {
int centerX; int centerX;
int centerY; int centerY;
if (drawMiniIcon && miniDrawCanvas != null) { if (drawMiniIcon && miniDrawCanvas != null) {
centerX = (int) (progressRect.width() / 2); centerX = (int) Math.ceil(progressRect.width() / 2);
centerY = (int) (progressRect.height() / 2); centerY = (int) Math.ceil(progressRect.height() / 2);
} else { } else {
centerX = (int) progressRect.centerX(); centerX = (int) progressRect.centerX();
centerY = (int) progressRect.centerY(); centerY = (int) progressRect.centerY();

View file

@ -962,7 +962,8 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
public boolean dispatchTouchEvent(MotionEvent ev) { public boolean dispatchTouchEvent(MotionEvent ev) {
MotionEvent eventToRecycle = null; MotionEvent eventToRecycle = null;
if (yOffset != 0) { 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); boolean result = super.dispatchTouchEvent(ev);
if (eventToRecycle != null) { if (eventToRecycle != null) {
@ -1008,7 +1009,6 @@ public class LocationActivity extends BaseFragment implements NotificationCenter
adapter.setCustomLocation(userLocation); adapter.setCustomLocation(userLocation);
} }
} }
//FileLog.d("evY = " + ev.getY());
return super.onInterceptTouchEvent(ev); return super.onInterceptTouchEvent(ev);
} }
}; };