Ejemplo n.º 1
0
 public DragEvent createFromParcel(Parcel in) {
   DragEvent event = DragEvent.obtain();
   event.mAction = in.readInt();
   event.mX = in.readFloat();
   event.mY = in.readFloat();
   event.mDragResult = (in.readInt() != 0);
   if (in.readInt() != 0) {
     event.mClipData = ClipData.CREATOR.createFromParcel(in);
   }
   if (in.readInt() != 0) {
     event.mClipDescription = ClipDescription.CREATOR.createFromParcel(in);
   }
   return event;
 }
Ejemplo n.º 2
0
 static DragEvent obtain() {
   return DragEvent.obtain(0, 0f, 0f, null, null, null, false);
 }