Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cfe90ce4 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am 05799981: Fix issue #2281046: Size and pressure don\'t change

Merge commit '05799981' into eclair-mr2

* commit '05799981':
  Fix issue #2281046: Size and pressure don't change
parents 44e15c44 05799981
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -288,6 +288,10 @@ public class InputDevice {
                        + " weight: (" + x + "," + y + ")");
                mAveragedData[ioff + MotionEvent.SAMPLE_X] = x;
                mAveragedData[ioff + MotionEvent.SAMPLE_Y] = y;
                mAveragedData[ioff + MotionEvent.SAMPLE_PRESSURE] =
                        rawData[ioff + MotionEvent.SAMPLE_PRESSURE];
                mAveragedData[ioff + MotionEvent.SAMPLE_SIZE] =
                        rawData[ioff + MotionEvent.SAMPLE_SIZE];
            }
            return mAveragedData;
        }