Fixed
Status Update
Comments
ja...@google.com <ja...@google.com> #2
Actually
ReplaceWith("gravity(Alignment.Vertical)") for RowScope if I'm not mistaken.
ReplaceWith("gravity(Alignment.Vertical)") for RowScope if I'm not mistaken.
cl...@google.com <cl...@google.com>
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit ae5237e749cccf80d1bf2ae32ace99b84ecc65ae
Author: Mihai Popa <popam@google.com>
Date: Tue May 19 19:15:42 2020
Remove deprecated APIs in Row and Column
The CL removes the deprecated RowAlign, ColumnAlign and gravity APIs in
Row and Column.
Relnote: "Removed deprecated RowAlign, ColumnAlign in Row and Column."
Bug: 154524540
Fixes: 155858731
Test: built and ran demos
Change-Id: If60d4b94486fdd3fa7c768905827c3b6594bffda
M ui/ui-layout/api/0.1.0-dev12.txt
M ui/ui-layout/api/current.txt
M ui/ui-layout/api/public_plus_experimental_0.1.0-dev12.txt
M ui/ui-layout/api/public_plus_experimental_current.txt
M ui/ui-layout/api/restricted_0.1.0-dev12.txt
M ui/ui-layout/api/restricted_current.txt
M ui/ui-layout/src/main/java/androidx/ui/layout/Column.kt
M ui/ui-layout/src/main/java/androidx/ui/layout/Row.kt
https://android-review.googlesource.com/1314173
Branch: androidx-master-dev
commit ae5237e749cccf80d1bf2ae32ace99b84ecc65ae
Author: Mihai Popa <popam@google.com>
Date: Tue May 19 19:15:42 2020
Remove deprecated APIs in Row and Column
The CL removes the deprecated RowAlign, ColumnAlign and gravity APIs in
Row and Column.
Relnote: "Removed deprecated RowAlign, ColumnAlign in Row and Column."
Bug: 154524540
Fixes: 155858731
Test: built and ran demos
Change-Id: If60d4b94486fdd3fa7c768905827c3b6594bffda
M ui/ui-layout/api/0.1.0-dev12.txt
M ui/ui-layout/api/current.txt
M ui/ui-layout/api/public_plus_experimental_0.1.0-dev12.txt
M ui/ui-layout/api/public_plus_experimental_current.txt
M ui/ui-layout/api/restricted_0.1.0-dev12.txt
M ui/ui-layout/api/restricted_current.txt
M ui/ui-layout/src/main/java/androidx/ui/layout/Column.kt
M ui/ui-layout/src/main/java/androidx/ui/layout/Row.kt
Description
"gravity(RowAlign) is deprecated. Please use gravity instead.",
-> ReplaceWith("gravity(align)")
)
@Suppress("Deprecation")
fun Modifier.gravity(align: RowAlign) = this + when (align) {
Should be:
ReplaceWith("gravity(Alignment)")