4977 Commits

Author SHA1 Message Date
db33cf313c fix: crash on Android Tab-View #6466 (#6467)
* fix: crash on Android Tab-View NativeScript#6466

This fix has been tested in production with no new issues occurring.

Long-term solution would be one of the following, though:
1. reintroduce overrides for `saveState`/`restoreState` in the current PagerAdapter implementation (removed on this commit NativeScript@ac04ede#diff-f1459d509d1432b432c29bcd30e462fbL97)
2. use FragmentPagerAdapter
3. use FragmentStatePagerAdapter

Both 2 and 3 manage the save/restore cycles. The main difference between 2 and 3 is that 2 uses more memory, but allows for quicker switching between Fragments than 3. Since tabs should usually be limited to 5 or less, this may be the best choice to maintain performance, which is important for top level navigation tabs.

When I have more time I may experiment with these options myself to see what the difference to performance and memory consumption is for each.

* refactor: _commitCurrentTransaction method+comment

* chore: fix typo

* fix: missing class definition
2018-11-14 15:53:38 +00:00
7df8038d09 fix: nested frames order with tabs & suspend/resume (#6528) 2018-11-14 10:20:52 +02:00
950fdcf5e7 fix(image): uncaught error in promise with image handling (#6453) 2018-11-13 16:49:37 +00:00
8e83a61879 chore: remove flaky test (#6548) 2018-11-12 15:28:07 +02:00
6531d7aa23 Merge pull request #6525 from NativeScript/svetoslavtsenov/merge-release
merge release to master
2018-11-08 17:25:49 +02:00
bf6a6fb716 Merge remote-tracking branch 'origin/master' into svetoslavtsenov/merge-release 2018-11-08 13:41:41 +02:00
ed2e9083e1 release: cut the 5.0.2 release (#6522) 2018-11-07 21:01:05 +02:00
7e7c050064 feat: add number and phone input types for prompt dialog (#6365) 2018-11-07 17:32:20 +02:00
af5eb7321b fix: Resolve incorrect name of listener when unsubscribing (#6487) 2018-11-07 14:32:31 +02:00
7d21b5c9ab fix(android): IllegalStateException with tabview&nested frames (#6495) 2018-11-07 14:30:22 +02:00
b6a5df18fc docs: add 5.0.0 changelog (#6485)
* docs: add 5.0.0 changelog

* docs: merge 5.0.0 RC and 5.0.0 changelogs
2018-11-07 14:30:01 +02:00
999e3780ec fix(android): back navigation on app suspend/resume (#6489) 2018-11-07 14:29:46 +02:00
7fbdc7adc8 fix: layoutChanged event in landscape (#6520) 2018-11-07 14:23:02 +02:00
4c08839459 test: add test for #6490 (#6517) 2018-11-06 16:57:38 +02:00
1485445123 test(safe-area): add layoutChanged test (#6462) 2018-11-06 11:26:23 +02:00
41ba93de41 fix(android): IllegalStateException with tabview&nested frames (#6495) 2018-11-05 16:17:51 +02:00
c41e3e05a0 docs: add 5.0.0 changelog (#6485)
* docs: add 5.0.0 changelog

* docs: merge 5.0.0 RC and 5.0.0 changelogs
2018-11-05 15:52:34 +02:00
fac970e753 fix(android): back navigation on app suspend/resume (#6489) 2018-11-02 17:31:52 +02:00
2933a9a934 fix: Resolve incorrect name of listener when unsubscribing (#6487) 2018-11-02 15:33:17 +02:00
f54f7c3985 Revert "chore(apps): add tslib dep and update tsconfig.json file (#6464)"
This reverts commit eca938d9defb3dd32af6e96829a19a6a4ba8df0b.
2018-11-02 10:52:55 +02:00
eca938d9de chore(apps): add tslib dep and update tsconfig.json file (#6464)
* fix: don't crash on startup due to tslib not being found

* fix: prevent error 'sourceMap' cannot be specified with option 'inlineSourceMap'

* Revert "fix: prevent error 'sourceMap' cannot be specified with option 'inlineSourceMap'"

This reverts commit c9d96de10ad9256aa7c42b1db55b5117443e2027.

* chore: updates tsconfig.json file
2018-11-01 15:44:10 +02:00
f0f0faf84e chore: cut the 5.0.1 release (#6484) 5.0.1 2018-11-01 12:13:47 +02:00
61bda9ecdf fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476) 2018-10-30 14:41:38 +02:00
e20d85f84f fix-next(ios): handle nesting in proxyViewContainer ng (#6475) 2018-10-30 14:41:38 +02:00
371fc9b647 fix(tab-view-android): change androidOffscreenTabLimit to 1 when using bottom tabs (#6476) 5.0.0 2018-10-30 14:24:55 +02:00
58c9d424f5 fix-next(ios): handle nesting in proxyViewContainer ng (#6475) 2018-10-30 14:00:00 +02:00
206cc53fd6 Revert "fix-next(android): restore fade animation for simulated nav (#6463)" (#6473)
This reverts commit 448936d6e6bf03c79e17648e8912a4f0eea0b43f.
2018-10-29 22:13:02 +02:00
25df69442f fix-next: handle view controller nesting in ng (#6472) 2018-10-29 22:13:02 +02:00
b8ca3a4ef8 fix-next(android): restore fade animation for simulated nav (#6463) 2018-10-29 22:13:02 +02:00
7f45c0195c fix-next: correct raising of layoutChanged event (#6457)
Currently the layoutChanged event can be raised even when there is no change due to safe area calculations.
2018-10-29 22:13:02 +02:00
127d6dd104 docs(iOS): update HtmlView documentation link (#6335)
The old link was a 404.
2018-10-29 22:13:02 +02:00
f261834719 fix-next: handle action bar safe area nesting (#6455) 2018-10-29 22:13:02 +02:00
c217f12c8f fix-next(android): exit fragment animation (#6421) 2018-10-29 22:13:02 +02:00
95c4ec5a96 Revert "fix-next(android): restore fade animation for simulated nav (#6463)" (#6473)
This reverts commit 448936d6e6bf03c79e17648e8912a4f0eea0b43f.
2018-10-29 19:43:34 +02:00
7625d6cb21 fix-next: handle view controller nesting in ng (#6472) 2018-10-29 19:22:30 +02:00
84e973d6a8 chore: bump version 2018-10-26 18:02:41 +03:00
448936d6e6 fix-next(android): restore fade animation for simulated nav (#6463) 2018-10-26 17:09:19 +03:00
f5cca13a7c fix-next: correct raising of layoutChanged event (#6457)
Currently the layoutChanged event can be raised even when there is no change due to safe area calculations.
2018-10-26 17:03:23 +03:00
745a79f5fa docs(iOS): update HtmlView documentation link (#6335)
The old link was a 404.
2018-10-26 14:47:35 +03:00
e48782511d fix-next: handle action bar safe area nesting (#6455) 2018-10-26 14:05:14 +03:00
4765dd9302 fix-next(android): exit fragment animation (#6421) 2018-10-26 13:32:30 +03:00
0002624d3c feat(frame): add new actionBarVisibility property (#6449) 2018-10-24 14:51:43 +03:00
af651d6e83 feat(frame): hardware back in parent frame when back states available (#6446) 2018-10-24 10:18:50 +03:00
9f7df1868c refactor: fix ts compilation errors (#6445) 2018-10-23 17:01:33 +03:00
dfa208a54d fix-next: apply ios safe area before transform (#6443) 2018-10-23 13:38:02 +03:00
a58fc528b2 fix(connectivity): making startMonitoring() behave on iOS as on Android (#6373)
On Android, when calling startMonitor it will immediately fire the callback with the current state. Now it does the same on iOS.
2018-10-23 00:06:39 +03:00
a211bbdbdc test(safe-area): fix ios 12 landscape tests (#6434) 2018-10-19 18:48:20 +03:00
c0438df9a7 fix(observable-array): reduce no longer ignores zero as initial value (#6402)
* fix(observable-array): reduce no longer ignores zero as initial value

* fix(observable-array): reduceRight now functions  properly when initial value is not specified or zero
2018-10-19 17:14:47 +03:00
a3f149325f 5620 GridLayout addChild to set row and column (#6411) 2018-10-19 15:20:41 +03:00
4407af7dd6 docs: 5.0.0-rc changelog (#6423)
* docs: 5.0.0-rc changelog

* chore: update breaking changes log

* docs: reorder changelog

* chore: minor changelog updates

* docs: update a link in changelog

* docs: add breaking changes

* docs: address comments

* docs: add links to breaking changes
2018-10-19 11:29:36 +03:00