Fixing issue with hotseat being on the wrong side of the screen in RTL.
Bug: 21499466 Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab
This commit is contained in:
parent
ca51aaad67
commit
f8c6f885f0
|
@ -45,7 +45,7 @@
|
||||||
android:id="@+id/hotseat"
|
android:id="@+id/hotseat"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_gravity="end" />
|
android:layout_gravity="right" />
|
||||||
|
|
||||||
<include
|
<include
|
||||||
android:id="@+id/search_drop_target_bar"
|
android:id="@+id/search_drop_target_bar"
|
||||||
|
|
|
@ -405,7 +405,8 @@ public class DeviceProfile {
|
||||||
View searchBar = launcher.getSearchBar();
|
View searchBar = launcher.getSearchBar();
|
||||||
lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams();
|
lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams();
|
||||||
if (hasVerticalBarLayout) {
|
if (hasVerticalBarLayout) {
|
||||||
// Vertical search bar space
|
// Vertical search bar space -- The search bar is fixed in the layout to be on the left
|
||||||
|
// of the screen regardless of RTL
|
||||||
lp.gravity = Gravity.LEFT;
|
lp.gravity = Gravity.LEFT;
|
||||||
lp.width = searchBarSpaceHeightPx;
|
lp.width = searchBarSpaceHeightPx;
|
||||||
|
|
||||||
|
@ -438,8 +439,9 @@ public class DeviceProfile {
|
||||||
View hotseat = launcher.findViewById(R.id.hotseat);
|
View hotseat = launcher.findViewById(R.id.hotseat);
|
||||||
lp = (FrameLayout.LayoutParams) hotseat.getLayoutParams();
|
lp = (FrameLayout.LayoutParams) hotseat.getLayoutParams();
|
||||||
if (hasVerticalBarLayout) {
|
if (hasVerticalBarLayout) {
|
||||||
// Vertical hotseat
|
// Vertical hotseat -- The hotseat is fixed in the layout to be on the right of the
|
||||||
lp.gravity = Gravity.END;
|
// screen regardless of RTL
|
||||||
|
lp.gravity = Gravity.RIGHT;
|
||||||
lp.width = hotseatBarHeightPx;
|
lp.width = hotseatBarHeightPx;
|
||||||
lp.height = LayoutParams.MATCH_PARENT;
|
lp.height = LayoutParams.MATCH_PARENT;
|
||||||
hotseat.findViewById(R.id.layout).setPadding(0, 2 * edgeMarginPx, 0, 2 * edgeMarginPx);
|
hotseat.findViewById(R.id.layout).setPadding(0, 2 * edgeMarginPx, 0, 2 * edgeMarginPx);
|
||||||
|
|
Loading…
Reference in New Issue