mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Remove custom focus logic
Using the system logic for focus handling so that partially visible contents are properly handled, eg in overview only hotseat is visible This does changes the focus logic on workspace when both icons and widgets or different sizes are present, we may consider reviving (parts of) this logic in the future Bug: 80189843 Change-Id: I874e284e0a62b579c24d36db9b74da3de7a7e367
This commit is contained in:
@@ -31,7 +31,6 @@ import android.view.ViewDebug;
|
||||
import com.android.launcher3.BubbleTextView;
|
||||
import com.android.launcher3.CellLayout;
|
||||
import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.FocusHelper.PagedFolderKeyEventListener;
|
||||
import com.android.launcher3.InvariantDeviceProfile;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.Launcher;
|
||||
@@ -88,7 +87,6 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> {
|
||||
private int mGridCountY;
|
||||
|
||||
private Folder mFolder;
|
||||
private PagedFolderKeyEventListener mKeyListener;
|
||||
|
||||
public FolderPagedView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
@@ -108,7 +106,6 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> {
|
||||
|
||||
public void setFolder(Folder folder) {
|
||||
mFolder = folder;
|
||||
mKeyListener = new PagedFolderKeyEventListener(folder);
|
||||
mPageIndicator = folder.findViewById(R.id.folder_page_indicator);
|
||||
initParentViews(folder);
|
||||
}
|
||||
@@ -241,7 +238,6 @@ public class FolderPagedView extends PagedView<PageIndicatorDots> {
|
||||
textView.setOnClickListener(ItemClickHandler.INSTANCE);
|
||||
textView.setOnLongClickListener(mFolder);
|
||||
textView.setOnFocusChangeListener(mFocusIndicatorHelper);
|
||||
textView.setOnKeyListener(mKeyListener);
|
||||
|
||||
textView.setLayoutParams(new CellLayout.LayoutParams(
|
||||
item.cellX, item.cellY, item.spanX, item.spanY));
|
||||
|
||||
Reference in New Issue
Block a user