Project

General

Profile

« Previous | Next » 

Revision 30f337e5

Added by Leszek Koltunski about 2 months ago

  • ID 30f337e50a7d5d83c0419732cc2f896aeef67cee
  • Parent c31aa527

Lint

View differences:

src/main/java/org/distorted/examples/earth/EarthSurfaceViewPicker.java
50 50
    private GraphicsThread mThread;
51 51
    private EffectName mCurrentEffect;
52 52
    private ArrayList<Integer> mPointsX, mPointsY, mPointsE;
53
    private WeakReference<EarthActivity> mAct;
53
    private final WeakReference<EarthActivity> mAct;
54 54
    private int mRadius;
55
    private Bitmap mBitmap;
56
    private Paint mPointPaint;
57
    private Rect mDst;
55
    private final Bitmap mBitmap;
56
    private final Paint mPointPaint;
57
    private final Rect mDst;
58 58
    private int mWidth, mHeight;
59 59

  
60 60
/////////////////////////////////////////////////////////////////////////////////////////
......
308 308
      int action = event.getAction();
309 309
      int x = (int)event.getX();
310 310
      int y = (int)event.getY();
311
           
312
      switch(action)
313
         {
314
         case MotionEvent.ACTION_DOWN: addNewPoint(x,y);
315
                                       refreshScreen = true;
316
                                       break;
317
         }
311

  
312
        if (action == MotionEvent.ACTION_DOWN) {
313
          addNewPoint(x, y);
314
          refreshScreen = true;
315
        }
318 316
             
319 317
      return true;
320 318
      }

Also available in: Unified diff