Commit Graph

13022 Commits

Author SHA1 Message Date
Peter
4be6d0bfbb Initial holes 2.0 support 2019-03-08 10:18:20 +00:00
Adlai Holler
5e8721ebe8 Make ASTextNode2 more forgiving when searching for links (#1374)
* Make ASTextNode2 more forgiving when searching for links by searching a 44x44 square around the touch

* Trailing whitespace

* Safely handle end-of-line
2019-03-07 13:29:13 -08:00
Garrett Moon
fce6f23b97 Launches switching ASNetworkImageNode callbacks to global queue. (#1369)
* Launches switching ASNetworkImageNode callbacks to global queue.

* Good catch configuration tests!
2019-03-07 09:47:56 -08:00
Kevin
4c370a899c [Updated Snapshots] Don't add extraneous truncation token during kCTLineTruncationMiddle (#1375)
* Don't add extraneous truncation token during kCTLineTruncationMiddle

* Expand these comments a little.

* Update snapshot tests with beautiful correct behavior
2019-03-07 07:20:06 -08:00
Garrett Moon
45146ff1cf Update the FAQ to throw less shade. (#1379)
* Update the FAQ to throw less shade.

Both of these technologies have their place, no point in being assholes.

* Update faq.md
2019-03-06 17:09:49 -08:00
Kevin
7bb3079082 Don't add extraneous truncation token during kCTLineTruncationMiddle. (#1297)
* Don't add extraneous truncation token during kCTLineTruncationMiddle

* Expand these comments a little.
2019-03-06 10:05:30 -08:00
Eric Scheers
a0012d90c2 Add forwarding of UIAccessibilityAction methods (#1344)
* Add forwarding of UIAccessibilityAction methods

* Use OCMock for testing UIAccessibilityAction method forwarding
2019-03-06 10:02:50 -08:00
Michael Schneider
07becd0fc8 Cleanup Yoga Categories (#1364) 2019-03-06 07:37:40 -08:00
Adlai Holler
dd4359db7b Optimize ASCATransactionQueue (#1350)
* Optimize ASCATransactionQueue. This queue is very busy, and it runs on the main thread so it's important for it to be fast.

Avoid waking up the run loop for every single node.
Avoid a ton of NSPointerArray overhead that we don't need.
Avoid retain/release traffic on the singleton by using an inline function. I confirmed that in release mode, the static __strong is correctly inlined and no ARC traffic is incurred.

* Comment

* Unlock right

* Remove magic number
2019-03-05 18:20:17 -08:00
Ilya Laktyushin
06bfd14561 Update submodules 2019-03-06 00:44:21 +03:00
Ilya Laktyushin
a95da7736f Fixed build 2019-03-06 00:43:58 +03:00
Ilya Laktyushin
07dac1322d Update submodules 2019-03-06 00:29:31 +03:00
Ilya Laktyushin
c278cf193b Volume bar fix 2019-03-06 00:23:48 +03:00
Ilya Laktyushin
f24d58d7de Fixed call ringing on confirming stage 2019-03-06 00:22:54 +03:00
Ilya Laktyushin
f80abacc46 Merge branch 'master' of gitlab.com:peter-iakovlev/TelegramUI 2019-03-06 00:22:07 +03:00
Ilya Laktyushin
9e52360952 Fixed embedded album artwork fetch 2019-03-06 00:21:30 +03:00
Peter
bcbaad78b6 Update submodules 2019-03-05 20:02:19 +00:00
Peter
839d9a02c3 API update 2019-03-05 20:02:06 +00:00
Peter
ea2dfc192c API update 2019-03-05 20:01:52 +00:00
Ilya Laktyushin
999d798687 Merge branch 'master' of gitlab.com:peter-iakovlev/TelegramUI 2019-03-05 22:53:53 +03:00
Xavier Deloge
2a9379248b _ASCollectionViewCell - The point isn't converted before to send to node, impossible to touch button into the node hierarchy (#1362)
* Revert node call, useless, the node has a ASDisplayView, and this view forward on the node in first.

* Use convertPoint to convert the given point in hittest & pointInside methods.
Keep the standard usage if the node didn't rasterized a view.

* Removed isNodeLoaded, finally it's useless in this case
In these methods, we are on the mainThread, we can create the view if the view is not created.
2019-03-05 09:00:38 -08:00
Peter
c05f95fcbf Don't include MtProtoKit in NotificationService 2019-03-05 15:04:05 +00:00
Peter
66434d9ca0 Update submodules 2019-03-05 13:48:08 +00:00
Peter
7077ff31dc Fix alert text accessibility 2019-03-05 13:47:54 +00:00
Peter
3790d0637d VoiceOver updates
Fix FetchManager behavior when pre-fetching files
Preload videos based on their duration
2019-03-05 13:39:46 +00:00
Peter
fdd4395b66 Added unregisterNotificationToken
Fix fetchedMediaResource for data ranges
2019-03-05 13:38:52 +00:00
Peter
bad5edd2a2 MessageOfInterestHolesView: cache media 2019-03-05 13:37:28 +00:00
Peter
552b4a2661 VoiceOver updates 2019-03-05 13:36:50 +00:00
Ilya Laktyushin
983efe1f61 Merge branch 'master' of gitlab.com:peter-iakovlev/TelegramUI 2019-03-05 16:24:30 +03:00
Ilya Laktyushin
1e87e43415 UI fixes 2019-03-05 16:21:55 +03:00
Adlai Holler
17dbd8e1e5 Optimize _assertSubnodeState (#1352)
* Optimize _assertSubnodeState

This method is actually pretty painful in today's world. In one iPad mini trace, the first page of nodes spent 6.6ms in this call, just in time profiler.

* Clean it up, check count

* Check the right value
2019-03-04 21:07:31 -08:00
Jonathan Downing
6dc0edf839 Make ASCollectionElement Public (#1303)
* Update AsyncDisplayKit.h

* Update project.pbxproj
2019-03-04 17:34:56 -08:00
Kevin
babd81bd23 Add setNeedsLayout to yoga tree changes. (#1361) 2019-03-04 17:33:28 -08:00
Kevin
96e6a6c595 Resolve root constrained size before informing delegate to resolve infinite layout loop. (#1359) 2019-03-04 17:21:01 -08:00
Kevin
50e8dbfb9c Do not lock the nodeController if we are not locking to root. (#1360)
Doing so leaves it locked when we elsewhere explicitly unlock the node to ascend.
2019-03-04 17:20:47 -08:00
Gregory K
46cd772b3f Merge pull request #76 from zevlg/issue-68-config-audio-callback
audio-callback feature is disabled by default
2019-03-05 00:35:31 +03:00
Zajcev Evgeny
c373fc65e4 audio-callback feature is disabled by default, use
"--enable-audio-callback" to enable it

Fixes #68
2019-03-05 00:24:12 +03:00
Garrett Moon
001765a85e If we check for batching before content size is available we'll always fetch (#1355) 2019-03-03 19:33:32 -06:00
Adlai Holler
d14a3b03e9 Optimize ASTwoDimensionalArrayUtils (#1351)
* Optimize ASTwoDimensionalArrayUtils

These methods are called on the main thread during range controller updates (i.e. every frame) and so they should be as fast as possible.

* Rename

* Use vector instead of stack array to handle really big cases (e.g. photos)
2019-03-03 12:49:36 -06:00
dirtmelon
257f5a9a6d Update layout-transition-api.md (#1357) 2019-03-03 08:05:44 -08:00
Kevin
1410b29b63 Lock up to yogaRoot during layout to avoid deadlocks. (#1356)
* Lock up to yogaRoot during layout to avoid dead lock.

1) lock to root for tree
2) lock self to change parent (& consequently root)
3) Implement ASLocking (tryLock) on ASNodeController
4) add lockPair to try-lock node & controller together
5) lock controllers if they exist in lockToRoot...

Disable some asserts due to lock to root. :(

LL# No commands remaining.

* Add macro so non-Yoga still builds :)

* wut
2019-03-03 08:05:01 -08:00
Michael Schneider
ddc4fd2ddb Don't compile out ASExperimentalTextNode if ASTextNode is compiled out (#1353) 2019-03-03 07:56:09 -08:00
Peter
34a6ae181e Update libtgvoip url 2019-03-02 00:31:17 +04:00
Peter
0d00df89d6 Update submodule urls 2019-03-02 00:23:25 +04:00
Peter
84e61105c1 Merge commit 'f83afd23f6960c4c2980663a73951df1ff82fd2d' 2019-03-02 00:03:46 +04:00
Peter
43b70a8bb1 Invoke resetStateManagement on account creation 2019-03-02 00:03:43 +04:00
Peter
1e89767d7f Merge commit '8c860dc9aa59c5b6776ff339813707f3b5475c33' 2019-03-02 00:03:10 +04:00
Peter
4a9e6d20db Media preload fixes 2019-03-02 00:03:06 +04:00
Peter
a58499d412 Media preload fixes 2019-03-02 00:02:45 +04:00
Peter
798e2dda42 ListView: added generalScrollDirectionUpdated 2019-03-02 00:01:24 +04:00