AOD/LS - Fix smartspace/clock collision
Make sure layouts don't collide, and works with RTL languages Fixes: 174651917 Test: manual, long calendar notification Change-Id: I4d604194e3b4616c0a82617d3585565d920dc01a
This commit is contained in:
@@ -156,13 +156,17 @@ public class KeyguardClockSwitch extends RelativeLayout {
|
||||
|
||||
statusAreaLP.removeRule(RelativeLayout.BELOW);
|
||||
statusAreaLP.addRule(RelativeLayout.ALIGN_PARENT_START);
|
||||
statusAreaLP.addRule(RelativeLayout.START_OF, R.id.new_lockscreen_clock_view);
|
||||
statusAreaLP.width = 0;
|
||||
} else {
|
||||
setPaddingRelative(0, 0, 0, 0);
|
||||
mSmallClockFrame.setVisibility(VISIBLE);
|
||||
mNewLockscreenClockFrame.setVisibility(GONE);
|
||||
|
||||
statusAreaLP.removeRule(RelativeLayout.ALIGN_PARENT_START);
|
||||
statusAreaLP.removeRule(RelativeLayout.START_OF);
|
||||
statusAreaLP.addRule(RelativeLayout.BELOW, R.id.clock_view);
|
||||
statusAreaLP.width = ViewGroup.LayoutParams.WRAP_CONTENT;
|
||||
}
|
||||
|
||||
requestLayout();
|
||||
|
||||
Reference in New Issue
Block a user