Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Fix tilt angle in sample app for top-down sweep
Browse files Browse the repository at this point in the history
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 6728c38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit 6728c38

Please sign in to comment.