mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Guarantee views are invisible after being faded (issue 11112570)
-> Prevent clicking of hotseat items during non-normal state -> Update folder text edit highlight color (issue 11072862) Change-Id: I0292b51dc5f7e318dc59e9a26bf1e39f333bc8eb
This commit is contained in:
@@ -25,6 +25,7 @@ import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.TextView;
|
||||
@@ -175,6 +176,16 @@ public class Hotseat extends FrameLayout {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
// We don't want any clicks to go through to the hotseat unless the workspace is in
|
||||
// the normal state.
|
||||
if (mLauncher.getWorkspace().isSmall()) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void addAllAppsFolder(IconCache iconCache,
|
||||
ArrayList<AppInfo> allApps, ArrayList<ComponentName> onWorkspace,
|
||||
Launcher launcher, Workspace workspace) {
|
||||
|
||||
Reference in New Issue
Block a user