Add ID to secondaryOrientationHandle for tests

Bug: 159763136

Change-Id: I0ad91d995c79415ad8b5cf849f8fd0c24bd0fd7a
This commit is contained in:
Vinit Nayak
2020-07-13 12:16:39 -07:00
parent e076abfa54
commit 83308950ee
2 changed files with 3 additions and 0 deletions

View File

@@ -92,6 +92,8 @@
<item type="id" name="requires_remeasuring"/>
<item type="id" name="secondary_home_handle" />
<!-- Whether the icon is from a notification for which targetSdk < L -->
<item type="id" name="icon_is_pre_L"/>

View File

@@ -591,6 +591,7 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback
.registerDisplayListener(this, new Handler(Looper.getMainLooper()));
mOrientationHandle = new QuickswitchOrientedNavHandle(getContext());
mOrientationHandle.setId(R.id.secondary_home_handle);
getBarTransitions().addDarkIntensityListener(mOrientationHandleIntensityListener);
mOrientationParams = new WindowManager.LayoutParams(0, 0,