Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/wear-os-hex-editor-watchface.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java')
-rw-r--r--app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java b/app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java
index 9ac0fce..48e7edf 100644
--- a/app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java
+++ b/app/src/main/java/com/clusterrr/hexeditorwatchface/CustomScrollingLayoutCallback.java
@@ -11,8 +11,6 @@ public class CustomScrollingLayoutCallback extends WearableLinearLayoutManager.L
*/
private static final float MAX_ICON_PROGRESS = 0.65f;
- private float progressToCenter;
-
@Override
public void onLayoutFinished(View child, RecyclerView parent) {
@@ -21,7 +19,7 @@ public class CustomScrollingLayoutCallback extends WearableLinearLayoutManager.L
float yRelativeToCenterOffset = (child.getY() / parent.getHeight()) + centerOffset;
// Normalize for center
- progressToCenter = Math.abs(0.5f - yRelativeToCenterOffset);
+ float progressToCenter = Math.abs(0.5f - yRelativeToCenterOffset);
// Adjust to the maximum scale
progressToCenter = Math.min(progressToCenter, MAX_ICON_PROGRESS);