Fix right-bottom corner edge to curve in PS container.
This happens when there isn't enough apps to fill in the private space container. * Added test to check the correct regions are being set depending on the apps in the list. * Need to set ROUND_BOTTOM_RIGHT to the last app item and the decorator would take care of it. * Changed to use mNumAppsPerRowAllApps that is already set in ctor. bug: 316116551 Test: manual/presubmit/photos: before: https://screenshot.googleplex.com/4Uo5Vtu3a6MDuGa after: https://screenshot.googleplex.com/878g8yv5LgPsHaL Flag: None Change-Id: Ic481628b824c75e5578f3129e3a48f575c6a3655
This commit is contained in:
1 parent
60dcb19a48
commit
17477dbf42
3 files changed
+140
-20
No files matched your search
@@ -22,11 +22,11 @@ import androidx.annotation.NonNull;
|
||||
|
||||
public class SectionDecorationInfo {
|
||||
|
||||
public static final int ROUND_NOTHING = 1 << 1;
|
||||
public static final int ROUND_TOP_LEFT = 1 << 2;
|
||||
public static final int ROUND_TOP_RIGHT = 1 << 3;
|
||||
public static final int ROUND_BOTTOM_LEFT = 1 << 4;
|
||||
public static final int ROUND_BOTTOM_RIGHT = 1 << 5;
|
||||
public static final int ROUND_NOTHING = 0;
|
||||
public static final int ROUND_TOP_LEFT = 1 << 1;
|
||||
public static final int ROUND_TOP_RIGHT = 1 << 2;
|
||||
public static final int ROUND_BOTTOM_LEFT = 1 << 3;
|
||||
public static final int ROUND_BOTTOM_RIGHT = 1 << 4;
|
||||
public static final int DECORATOR_ALPHA = 255;
|
||||
|
||||
protected boolean mShouldDecorateItemsTogether;
|
||||
|
||||
Reference in new issue
Block a user