summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
diff options
context:
space:
mode:
authorMatt Pietal <mpietal@google.com>2020-11-25 13:16:58 -0500
committerMatt Pietal <mpietal@google.com>2020-11-25 13:16:58 -0500
commit5bcab675a8824ff9d59f65620614918521a52357 (patch)
tree02ebc804da62325edf23d4a38d6fa25239d8836a /packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
parent2902a86853598d37ad28337e2514bf1b72db65e9 (diff)
AOD/LS - RTL adjustments
Slightly update large clock size. Fix smartspace text alignment for RTL languages and use relative alignment for images within the text. Bug: 172360102 Test: manual Change-Id: I8fdf1ac8789a8ca75ed97f369bdbd5de40a616d7
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
index a32cd1420fdc..3cbab8e66fdb 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
@@ -244,7 +244,7 @@ public class KeyguardSliceView extends LinearLayout {
iconDrawable.setBounds(0, 0, Math.max(width, 1), iconSize);
}
}
- button.setCompoundDrawables(iconDrawable, null, null, null);
+ button.setCompoundDrawablesRelative(iconDrawable, null, null, null);
button.setOnClickListener(mOnClickListener);
button.setClickable(pendingIntent != null);
}
@@ -536,9 +536,9 @@ public class KeyguardSliceView extends LinearLayout {
}
@Override
- public void setCompoundDrawables(Drawable left, Drawable top, Drawable right,
+ public void setCompoundDrawablesRelative(Drawable start, Drawable top, Drawable end,
Drawable bottom) {
- super.setCompoundDrawables(left, top, right, bottom);
+ super.setCompoundDrawablesRelative(start, top, end, bottom);
updateDrawableColors();
updatePadding();
}
@@ -558,9 +558,9 @@ public class KeyguardSliceView extends LinearLayout {
public void setLockScreenMode(int mode) {
mLockScreenMode = mode;
if (mLockScreenMode == KeyguardUpdateMonitor.LOCK_SCREEN_MODE_LAYOUT_1) {
- setGravity(Gravity.START);
+ setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
} else {
- setGravity(Gravity.CENTER);
+ setTextAlignment(View.TEXT_ALIGNMENT_CENTER);
}
updatePadding();
}