Skip to content

Commit 574bce2

Browse files
committed
Travis fix
1 parent 5d64081 commit 574bce2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

dragger/src/main/java/com/github/ppamorim/dragger/DraggerView.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public float getDragLimit() {
257257
* @param dragLimit Value between 0.0f and 1.0f
258258
*/
259259
public void setDraggerLimit(float dragLimit) {
260-
if(dragLimit > 0.0f && dragLimit < 1.0f) {
260+
if (dragLimit > 0.0f && dragLimit < 1.0f) {
261261
this.dragLimit = dragLimit;
262262
} else {
263263
throw new IllegalStateException("dragLimit needs to be between 0.0f and 1.0f");
@@ -316,10 +316,10 @@ private void mapGUI(TypedArray attributes) {
316316
R.styleable.dragger_layout_drag_view_id, R.id.drag_view);
317317
int shadowViewId = attributes.getResourceId(
318318
R.styleable.dragger_layout_shadow_view_id, R.id.shadow_view);
319-
if(dragViewId > 0) {
319+
if (dragViewId > 0) {
320320
dragView = findViewById(dragViewId);
321321
}
322-
if(shadowViewId > 0) {
322+
if (shadowViewId > 0) {
323323
shadowView = findViewById(shadowViewId);
324324
}
325325
} else {
@@ -513,16 +513,20 @@ public void setAnimationDuration(int miliseconds, float multipler) {
513513
double val = spring.getCurrentValue();
514514
switch (dragPosition) {
515515
case LEFT:
516-
ViewCompat.setTranslationX(dragView, (float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, -dragView.getWidth()));
516+
ViewCompat.setTranslationX(dragView,
517+
(float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, -dragView.getWidth()));
517518
break;
518519
case RIGHT:
519-
ViewCompat.setTranslationX(dragView, (float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, dragView.getWidth()));
520+
ViewCompat.setTranslationX(dragView,
521+
(float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, dragView.getWidth()));
520522
break;
521523
case TOP:
522-
ViewCompat.setTranslationY(dragView, (float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, dragView.getHeight()));
524+
ViewCompat.setTranslationY(dragView,
525+
(float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, dragView.getHeight()));
523526
break;
524527
case BOTTOM:
525-
ViewCompat.setTranslationY(dragView, (float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, -dragView.getHeight()));
528+
ViewCompat.setTranslationY(dragView,
529+
(float) SpringUtil.mapValueFromRangeToRange(val, 0, 1, 0, -dragView.getHeight()));
526530
break;
527531
default:
528532
break;

0 commit comments

Comments
 (0)