+ public boolean onInterceptTouchEvent(MotionEvent ev) { + boolean superB = super.onInterceptTouchEvent(ev); + boolean workspaceB = Launcher.mLauncher.getWorkspace().onInterceptTouchEvent(ev); + Log.d(TAG, "superB " + superB + " workspaceB " + workspaceB); return false; }
//在workspace的父类PagedView中,处理onUnhandledTap的touch,这是为了让即使上滑 没有图标的HotSeat区域,也能处理上滑
+ protected void onUnhandledTap(MotionEvent ev) { + //for show firstAddMenu when touch from empty dock + Launcher.mLauncher.getWorkspace().onInterceptTouchEvent(ev); + }