Add support for taskbar phone 3 button seascape
* Ignore orientation check from ag/22709055 for now, that will be reverted. This causes recreateTaskbar() to not run when folding the device Bug: 274517647 Test: Tested 3 button nav in portrait/landscape/seascape Flag: persist.wm.debug.hide_navbar_window Change-Id: Ied02ead677d496b465c748257e32b7db5eb9580c
This commit is contained in:
1 parent
1e3d799fe3
commit
15a9feb67f
13 files changed
+298
-107
No files matched your search
@@ -17,6 +17,8 @@
|
||||
package com.android.launcher3.taskbar.navbutton
|
||||
|
||||
import android.content.res.Resources
|
||||
import android.view.Surface.ROTATION_90
|
||||
import android.view.Surface.Rotation
|
||||
import android.view.ViewGroup
|
||||
import android.widget.FrameLayout
|
||||
import android.widget.LinearLayout
|
||||
@@ -56,7 +58,8 @@ class NavButtonLayoutFactory {
|
||||
isKidsMode: Boolean,
|
||||
isInSetup: Boolean,
|
||||
isThreeButtonNav: Boolean,
|
||||
phoneMode: Boolean
|
||||
phoneMode: Boolean,
|
||||
@Rotation surfaceRotation: Int
|
||||
): NavButtonLayoutter {
|
||||
val navButtonContainer = navButtonsView.findViewById<LinearLayout>(ID_END_NAV_BUTTONS)
|
||||
val endContextualContainer =
|
||||
@@ -73,13 +76,20 @@ class NavButtonLayoutFactory {
|
||||
endContextualContainer,
|
||||
startContextualContainer
|
||||
)
|
||||
} else {
|
||||
} else if (surfaceRotation == ROTATION_90) {
|
||||
PhoneLandscapeNavLayoutter(
|
||||
resources,
|
||||
navButtonContainer,
|
||||
endContextualContainer,
|
||||
startContextualContainer
|
||||
)
|
||||
} else {
|
||||
PhoneSeascapeNavLayoutter(
|
||||
resources,
|
||||
navButtonContainer,
|
||||
endContextualContainer,
|
||||
startContextualContainer
|
||||
)
|
||||
}
|
||||
}
|
||||
deviceProfile.isTaskbarPresent -> {
|
||||
|
||||
Reference in new issue
Block a user