Skip to content

Commit

Permalink
Merge pull request #7 from natario1/master
Browse files Browse the repository at this point in the history
new version
  • Loading branch information
derohimat authored Aug 7, 2018
2 parents d7d7890 + 4c6a8db commit a635f2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ to just square sizes:

```java
SizeSelector width = SizeSelectors.minWidth(1000);
SizeSelector height = SizeSelectors.minWidth(2000);
SizeSelector height = SizeSelectors.minHeight(2000);
SizeSelector dimensions = SizeSelectors.and(width, height); // Matches sizes bigger than 1000x2000.
SizeSelector ratio = SizeSelectors.aspectRatio(AspectRatio.of(1, 1), 0); // Matches 1:1 sizes.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface Callback {

OrientationHelper(Context context, @NonNull Callback callback) {
mCallback = callback;
mListener = new OrientationEventListener(context, SensorManager.SENSOR_DELAY_NORMAL) {
mListener = new OrientationEventListener(context.getApplicationContext(), SensorManager.SENSOR_DELAY_NORMAL) {

@Override
public void onOrientationChanged(int orientation) {
Expand Down Expand Up @@ -72,4 +72,4 @@ int getDeviceOrientation() {
int getDisplayOffset() {
return mDisplayOffset;
}
}
}

0 comments on commit a635f2c

Please sign in to comment.