From 4f3d67178d99fc8be71d6db884eed7a5f517f655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Kwiecie=C5=84?= Date: Tue, 16 Jun 2015 16:09:43 +0200 Subject: [PATCH] fixed angle --- app/sample.iml | 93 ------------------- library/build.gradle | 4 +- .../RoundOverlayProgressView.java | 2 +- 3 files changed, 3 insertions(+), 96 deletions(-) delete mode 100644 app/sample.iml diff --git a/app/sample.iml b/app/sample.iml deleted file mode 100644 index bcbad15..0000000 --- a/app/sample.iml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index 8a89ffa..08e82fb 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -8,8 +8,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 22 - versionCode 2 - versionName "1.0.1" + versionCode 3 + versionName "1.0.2" } buildTypes { release { diff --git a/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java b/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java index 342fb87..1dd735d 100644 --- a/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java +++ b/library/src/main/java/pl/schibsted/roundoverlayprogress/RoundOverlayProgressView.java @@ -108,7 +108,7 @@ private int calculateAngle(int progress) { float percentProgress = (float) progress / (float) maxProgress; int angle = (int) (360.0 * percentProgress); - return angle * -1; + return angle; } public void setProgress(int newProgress) {