Merge "Fix incorrect icon alignment on shelf" into pi-dev
This commit is contained in:
@@ -1635,6 +1635,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
mTranslateableViews.get(i).setTranslationX(0);
|
mTranslateableViews.get(i).setTranslationX(0);
|
||||||
}
|
}
|
||||||
invalidateOutline();
|
invalidateOutline();
|
||||||
|
getEntry().expandedIcon.setScrollX(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
mMenuRow.resetMenu();
|
mMenuRow.resetMenu();
|
||||||
|
|||||||
@@ -298,4 +298,13 @@ public class ExpandableNotificationRowTest extends SysuiTestCase {
|
|||||||
|
|
||||||
assertEquals(3, mGroupRow.getNumUniqueChannels());
|
assertEquals(3, mGroupRow.getNumUniqueChannels());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testIconScrollXAfterTranslationAndReset() throws Exception {
|
||||||
|
mGroupRow.setTranslation(50);
|
||||||
|
assertEquals(50, -mGroupRow.getEntry().expandedIcon.getScrollX());
|
||||||
|
|
||||||
|
mGroupRow.resetTranslation();
|
||||||
|
assertEquals(0, mGroupRow.getEntry().expandedIcon.getScrollX());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user