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