Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit fa002aa

Browse files
committed
Simplified isLandscape() call
1 parent 28a2e48 commit fa002aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/com/etsy/android/grid/StaggeredGridView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void setColumnCount(int columnCount) {
243243
// MEASUREMENT
244244
//
245245
private boolean isLandscape() {
246-
return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE ? true : false;
246+
return getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
247247
}
248248

249249
@Override

0 commit comments

Comments
 (0)