Allow subclassing Launcher

Changes included:

- Make Launcher not final

- Add some new methods as hooks for subclasses

- Allow Launcher to intercept Workspace touch events

Change-Id: I9a2b628c853394a3b237a384336e1b9e5c2382ec
This commit is contained in:
Bjorn Bringert
2013-06-07 19:36:01 +01:00
parent 7564d98164
commit c459e5241e
2 changed files with 28 additions and 4 deletions

View File

@@ -663,6 +663,11 @@ public class Workspace extends SmoothPagedView
}
}
}
if (mLauncher != null && mLauncher.onTouch(this, ev)) {
return true;
}
return super.onInterceptTouchEvent(ev);
}