Use nearest region for all the nav buttons in 3-button folded mode
Bug: 230395757 Test: In 3-button folded mode, make sure that the touches that happen between nav buttons go to the nearest button. No regression in other modes. Change-Id: Icb776a9a4ed4fc31d33dc3267c7053f2b0da0bfc
This commit is contained in:
@@ -28,6 +28,7 @@ import android.widget.FrameLayout;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.taskbar.navbutton.NearestTouchFrame;
|
||||
|
||||
/**
|
||||
* Controller for managing buttons and status icons in taskbar in a desktop environment.
|
||||
@@ -43,7 +44,7 @@ public class DesktopNavbarButtonsViewController extends NavbarButtonsViewControl
|
||||
private TaskbarControllers mControllers;
|
||||
|
||||
public DesktopNavbarButtonsViewController(TaskbarActivityContext context,
|
||||
@Nullable Context navigationBarPanelContext, FrameLayout navButtonsView) {
|
||||
@Nullable Context navigationBarPanelContext, NearestTouchFrame navButtonsView) {
|
||||
super(context, navigationBarPanelContext, navButtonsView);
|
||||
mContext = context;
|
||||
mNavButtonsView = navButtonsView;
|
||||
|
||||
Reference in New Issue
Block a user