0b6a88c2632aad13ff89099f4050bcef9007f4ec.svn-base 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.geocities.com/kpdus/jad.html
  3. // Decompiler options: braces fieldsfirst space lnc
  4. package eVVM.apk.helper.basepicker;
  5. import java.util.Timer;
  6. import java.util.TimerTask;
  7. // Referenced classes of package com.qingchifan.view:
  8. // LoopView
  9. final class MyTimerTask extends TimerTask {
  10. float a;
  11. float b;
  12. final int c;
  13. final Timer timer;
  14. final LoopMsgView loopView;
  15. MyTimerTask(LoopMsgView loopview, int i, Timer timer) {
  16. super();
  17. this.loopView = loopview;
  18. c = i;
  19. this.timer = timer;
  20. a = 2.147484E+09F;
  21. b = 0.0F;
  22. }
  23. public final void run() {
  24. if (a == 2.147484E+09F) {
  25. a = (float) (c - LoopMsgView.getSelectItem(loopView)) * loopView.l * (float) loopView.h;
  26. if (c > LoopMsgView.getSelectItem(loopView)) {
  27. b = -1000F;
  28. } else {
  29. b = 1000F;
  30. }
  31. }
  32. if (Math.abs(a) < 1.0F) {
  33. timer.cancel();
  34. loopView.handler.sendEmptyMessage(2000);
  35. return;
  36. }
  37. int j = (int) ((b * 10F) / 1000F);
  38. int i = j;
  39. if (Math.abs(a) < (float) Math.abs(j)) {
  40. i = (int) (-a);
  41. }
  42. LoopMsgView loopview = loopView;
  43. loopview.totalScrollY = loopview.totalScrollY - i;
  44. float f = a;
  45. a = (float) i + f;
  46. loopView.handler.sendEmptyMessage(1000);
  47. }
  48. }