mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Disable custom transition test on Android 6.9 (API 23)
http://stackoverflow.com/questions/33188485/resultindex-is-1-the-polygon-must-be-invalid-adter-addview
This commit is contained in:
@ -39,12 +39,18 @@ export var test_Transitions = function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var transitions;
|
var transitions;
|
||||||
|
var testCustomTransition = true;
|
||||||
if (platform.device.os === platform.platformNames.ios) {
|
if (platform.device.os === platform.platformNames.ios) {
|
||||||
transitions = ["curl"];
|
transitions = ["curl"];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var _sdkVersion = parseInt(platform.device.sdkVersion);
|
var _sdkVersion = parseInt(platform.device.sdkVersion);
|
||||||
transitions = _sdkVersion >= 21 ? ["explode"] : [];
|
transitions = _sdkVersion >= 21 ? ["explode"] : [];
|
||||||
|
if (_sdkVersion === 23) {
|
||||||
|
// Apparently, there is some kind of Android 6.0 (API 23) bug when using ObjectAnimators
|
||||||
|
// http://stackoverflow.com/questions/33188485/resultindex-is-1-the-polygon-must-be-invalid-adter-addview
|
||||||
|
testCustomTransition = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
transitions = transitions.concat(["fade", "flip", "slide"]);
|
transitions = transitions.concat(["fade", "flip", "slide"]);
|
||||||
var durations = [undefined, 500];
|
var durations = [undefined, 500];
|
||||||
@ -68,9 +74,11 @@ export var test_Transitions = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Custom transition
|
// Custom transition
|
||||||
var customTransitionModule = require("./custom-transition");
|
if (testCustomTransition) {
|
||||||
var customTransition = new customTransitionModule.CustomTransition();
|
var customTransitionModule = require("./custom-transition");
|
||||||
_testTransition({ instance: customTransition });
|
var customTransition = new customTransitionModule.CustomTransition();
|
||||||
|
_testTransition({ instance: customTransition });
|
||||||
|
}
|
||||||
|
|
||||||
helper.goBack();
|
helper.goBack();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user