mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-27 22:39:48 +00:00
Merge commit '893457ba75dbb847e5318bde333c9b0ffc300420'
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
{
|
||||
_circleLayer.hidden = false;
|
||||
|
||||
if (_circleLayer.animationKeys.count > 0)
|
||||
return;
|
||||
|
||||
CAKeyframeAnimation *scaleAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"];
|
||||
scaleAnimation.values = @[@0.0f, @0.72f, @1.0f, @1.0f];
|
||||
scaleAnimation.keyTimes = @[@0.0, @0.49f, @0.88f, @1.0f];
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
TGLocationAnnotation *_annotation;
|
||||
|
||||
UIBarButtonItem *_actionsBarItem;
|
||||
bool _didSetRightBarButton;
|
||||
|
||||
SVariable *_reloadReady;
|
||||
SMetaDisposable *_reloadDisposable;
|
||||
@@ -64,7 +65,6 @@
|
||||
bool _selectedCurrentLiveLocation;
|
||||
|
||||
bool _focusOnOwnLocation;
|
||||
|
||||
TGLocationPinAnnotationView *_ownLiveLocationView;
|
||||
__weak MKAnnotationView *_userLocationView;
|
||||
}
|
||||
@@ -245,7 +245,11 @@
|
||||
{
|
||||
if ([self hasMoreThanOneLocation])
|
||||
{
|
||||
[self setRightBarButtonItem:_actionsBarItem animated:true];
|
||||
if (!_didSetRightBarButton)
|
||||
{
|
||||
_didSetRightBarButton = true;
|
||||
[self setRightBarButtonItem:_actionsBarItem animated:true];
|
||||
}
|
||||
|
||||
if (actual && self.zoomToFitAllLocationsOnScreen)
|
||||
{
|
||||
@@ -263,7 +267,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
[self setRightBarButtonItem:nil animated:true];
|
||||
if (_didSetRightBarButton)
|
||||
{
|
||||
_didSetRightBarButton = false;
|
||||
[self setRightBarButtonItem:nil animated:true];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user