diff options
-rw-r--r-- | src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java index 9cd50c3..7cfdb4d 100644 --- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java +++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java @@ -504,14 +504,6 @@ public class LiveWallpaperPreview extends Activity { @Override public boolean dispatchTouchEvent(MotionEvent ev) { - if (mWallpaperConnection != null && mWallpaperConnection.mEngine != null) { - MotionEvent dup = MotionEvent.obtainNoHistory(ev); - try { - mWallpaperConnection.mEngine.dispatchPointer(dup); - } catch (RemoteException e) { - } - } - if (ev.getAction() == MotionEvent.ACTION_DOWN) { onUserInteraction(); } @@ -521,6 +513,12 @@ public class LiveWallpaperPreview extends Activity { } if (!handled && mWallpaperConnection != null && mWallpaperConnection.mEngine != null) { + MotionEvent dup = MotionEvent.obtainNoHistory(ev); + try { + mWallpaperConnection.mEngine.dispatchPointer(dup); + } catch (RemoteException e) { + } + int action = ev.getActionMasked(); try { if (action == MotionEvent.ACTION_UP) { |