| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.geocities.com/kpdus/jad.html
- // Decompiler options: braces fieldsfirst space lnc
- package eVVM.apk.helper.basepicker;
- import java.util.Timer;
- import java.util.TimerTask;
- // Referenced classes of package com.qingchifan.view:
- // LoopView
- final class LoopTimerTask extends TimerTask {
- float a;
- final float b;
- final Timer timer;
- final LoopMsgView loopView;
- LoopTimerTask(LoopMsgView loopview, float f, Timer timer) {
- super();
- loopView = loopview;
- b = f;
- this.timer = timer;
- a = 2.147484E+09F;
- }
- public final void run() {
- if (a == 2.147484E+09F) {
- if (Math.abs(b) > 2000F) {
- if (b > 0.0F) {
- a = 2000F;
- } else {
- a = -2000F;
- }
- } else {
- a = b;
- }
- }
- if (Math.abs(a) >= 0.0F && Math.abs(a) <= 20F) {
- timer.cancel();
- loopView.handler.sendEmptyMessage(2000);
- return;
- }
- int i = (int) ((a * 10F) / 1000F);
- LoopMsgView loopview = loopView;
- loopview.totalScrollY = loopview.totalScrollY - i;
- if (!loopView.isLoop) {
- if (loopView.totalScrollY <= (int) ((float) (-loopView.positon) * (loopView.l * (float) loopView.h))) {
- a = 40F;
- loopView.totalScrollY = (int) ((float) (-loopView.positon) * (loopView.l * (float) loopView.h));
- } else if (loopView.totalScrollY >= (int) ((float) (loopView.arrayList.size() - 1 - loopView.positon) * (loopView.l * (float) loopView.h))) {
- loopView.totalScrollY = (int) ((float) (loopView.arrayList.size() - 1 - loopView.positon) * (loopView.l * (float) loopView.h));
- a = -40F;
- }
- }
- if (a < 0.0F) {
- a = a + 20F;
- } else {
- a = a - 20F;
- }
- loopView.handler.sendEmptyMessage(1000);
- }
- }
|