Merge "Revert "Revert "Move binder call to bg thread""" into tm-qpr-dev am: f729b8d0f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19202701 Change-Id: Iec333074ba0889353f435d1f28b9da0ae1457784 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -626,6 +626,7 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
|
||||
}
|
||||
}, mainExecutor, bgExecutor);
|
||||
|
||||
mView.setBackgroundExecutor(bgExecutor);
|
||||
mView.setEdgeBackGestureHandler(mEdgeBackGestureHandler);
|
||||
mNavBarMode = mNavigationModeController.addListener(mModeChangedListener);
|
||||
}
|
||||
|
||||
@@ -88,6 +88,7 @@ import com.android.wm.shell.pip.Pip;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/** */
|
||||
@@ -97,6 +98,8 @@ public class NavigationBarView extends FrameLayout {
|
||||
|
||||
final static boolean ALTERNATE_CAR_MODE_UI = false;
|
||||
|
||||
private Executor mBgExecutor;
|
||||
|
||||
// The current view is one of mHorizontal or mVertical depending on the current configuration
|
||||
View mCurrentView = null;
|
||||
private View mVertical;
|
||||
@@ -349,6 +352,10 @@ public class NavigationBarView extends FrameLayout {
|
||||
notifyVerticalChangedListener(mIsVertical);
|
||||
}
|
||||
|
||||
public void setBackgroundExecutor(Executor bgExecutor) {
|
||||
mBgExecutor = bgExecutor;
|
||||
}
|
||||
|
||||
public void setTouchHandler(Gefingerpoken touchHandler) {
|
||||
mTouchHandler = touchHandler;
|
||||
}
|
||||
@@ -768,8 +775,8 @@ public class NavigationBarView extends FrameLayout {
|
||||
updateSlippery();
|
||||
reloadNavIcons();
|
||||
updateNavButtonIcons();
|
||||
WindowManagerWrapper.getInstance().setNavBarVirtualKeyHapticFeedbackEnabled(
|
||||
!mShowSwipeUpUi);
|
||||
mBgExecutor.execute(() -> WindowManagerWrapper.getInstance()
|
||||
.setNavBarVirtualKeyHapticFeedbackEnabled(!mShowSwipeUpUi));
|
||||
getHomeButton().setAccessibilityDelegate(
|
||||
mShowSwipeUpUi ? mQuickStepAccessibilityDelegate : null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user