Permalink
Browse files

Fix tilt angle in sample app for top-down sweep

Summary: We set the direction from top to bottom but kept the default nonzero tilt, we need to explicitly specify 0 tilt here

Reviewed By: sjkirby

Differential Revision: D8729181

fbshipit-source-id: 65675b8f45573eb9d080eb60f975c794f1b4f299
  • Loading branch information...
xiphirx authored and facebook-github-bot committed Jul 5, 2018
1 parent b6b9026 commit 6728c382597b2d1ad60c03bb1b855f366bc9e447
Showing with 1 addition and 1 deletion.
  1. +1 −1 sample/src/main/java/com/facebook/shimmer/sample/MainActivity.kt
@@ -87,7 +87,7 @@ class MainActivity : Activity(), View.OnClickListener {
3 -> {
// Sweep angle 90
toast = Toast.makeText(this, "Sweep angle 90", Toast.LENGTH_SHORT)
shimmerBuilder.setDirection(Shimmer.Direction.TOP_TO_BOTTOM)
shimmerBuilder.setDirection(Shimmer.Direction.TOP_TO_BOTTOM).setTilt(0f)
}
4 -> {

0 comments on commit 6728c38

Please sign in to comment.