aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/TransitionView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/TransitionView.cpp')
-rw-r--r--samplecode/TransitionView.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/samplecode/TransitionView.cpp b/samplecode/TransitionView.cpp
index e755288062..4f15bd310a 100644
--- a/samplecode/TransitionView.cpp
+++ b/samplecode/TransitionView.cpp
@@ -189,5 +189,10 @@ private:
};
SkView* create_transition(SkView* prev, SkView* next, int direction) {
+#ifdef SK_BUILD_FOR_ANDROID
+ // Disable transitions for Android
+ return next;
+#else
return SkNEW_ARGS(TransitionView, (prev, next, direction));
+#endif
}