Merge "Fix Keyguard affordances for RTL" into lmp-mr1-dev
This commit is contained in:
@@ -451,6 +451,10 @@ public class KeyguardAffordanceHelper {
|
|||||||
initIcons();
|
initIcons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onRtlPropertiesChanged() {
|
||||||
|
initIcons();
|
||||||
|
}
|
||||||
|
|
||||||
public void reset(boolean animate) {
|
public void reset(boolean animate) {
|
||||||
if (mSwipeAnimator != null) {
|
if (mSwipeAnimator != null) {
|
||||||
mSwipeAnimator.cancel();
|
mSwipeAnimator.cancel();
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import android.content.res.Configuration;
|
|||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.ColorDrawable;
|
import android.graphics.drawable.ColorDrawable;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
import android.util.LayoutDirection;
|
||||||
import android.util.MathUtils;
|
import android.util.MathUtils;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.VelocityTracker;
|
import android.view.VelocityTracker;
|
||||||
@@ -169,6 +170,7 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
private int mQsFalsingThreshold;
|
private int mQsFalsingThreshold;
|
||||||
|
|
||||||
private float mKeyguardStatusBarAnimateAlpha = 1f;
|
private float mKeyguardStatusBarAnimateAlpha = 1f;
|
||||||
|
private int mOldLayoutDirection;
|
||||||
|
|
||||||
public NotificationPanelView(Context context, AttributeSet attrs) {
|
public NotificationPanelView(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
@@ -1588,6 +1590,14 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
mAfforanceHelper.onConfigurationChanged();
|
mAfforanceHelper.onConfigurationChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onRtlPropertiesChanged(int layoutDirection) {
|
||||||
|
if (layoutDirection != mOldLayoutDirection) {
|
||||||
|
mAfforanceHelper.onRtlPropertiesChanged();
|
||||||
|
mOldLayoutDirection = layoutDirection;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (v == mHeader) {
|
if (v == mHeader) {
|
||||||
|
|||||||
Reference in New Issue
Block a user