Fixed
Status Update
Comments
al...@google.com <al...@google.com>
du...@google.com <du...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit c60f33e229e31ab328ef6b59dab63b264954831c
Author: Alexandre Elias <aelias@google.com>
Date: Fri Jul 10 16:23:09 2020
Semantics no-op cleanups
Partly in response to lmr's broad code review, I did a pass of
superficial API/implementation cleanup. The main changes are:
- I changed each Boolean SemanticsProperty where false is equivalent to
not being present to take "Unit" instead. This is conceptually
clearer: it avoids questions like "can I cancel out a semantics from a
merged child by setting it to false?" Because "property = Unit" looks
weird, I also changed the style of these to "property()".
- I moved the Semantics id generator closer to where it's used, in
SemanticsModifierCore. I made it internal and an AtomicInt.
(Note that integer ids are heavily used in the Android
AccessibilityNodeInfo APIs so I can't simply remove them entirely.)
- I deleted dead code. Some examples include SemanticsHintOverrides,
a public API not connected to anything, and SemanticsPropertyKey
merge() open method which is never called. (In both cases I have
a different plan in mind for accessibility.)
Fixes: 145951226
Fixes: 145955412
Test: existing tests
Relnote: "Single-value semantics properties now use a calling style.
For example, 'semantics { hidden = true }' is now written as:
'semantics { hidden() }'."
Change-Id: Ic1afd12ea22c926babc9662f1804d80b33aa0cfc
M ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/benchmark/test/LayoutNodeModifierBenchmark.kt
M ui/ui-core/api/0.1.0-dev15.txt
M ui/ui-core/api/current.txt
M ui/ui-core/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-core/api/public_plus_experimental_current.txt
M ui/ui-core/api/restricted_0.1.0-dev15.txt
M ui/ui-core/api/restricted_current.txt
M ui/ui-core/src/androidAndroidTest/kotlin/androidx/ui/graphics/vector/VectorTest.kt
M ui/ui-core/src/androidAndroidTest/kotlin/androidx/ui/semantics/SemanticsTests.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidActuals.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidComposeView.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidComposeViewAccessibilityDelegateCompat.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidPopup.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/Expect.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsConfiguration.kt
D ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsHintOverrides.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsModifier.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsNode.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsOwner.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsWrapper.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/semantics/SemanticsProperties.kt
M ui/ui-foundation/api/0.1.0-dev15.txt
M ui/ui-foundation/api/current.txt
M ui/ui-foundation/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-foundation/api/public_plus_experimental_current.txt
M ui/ui-foundation/api/restricted_0.1.0-dev15.txt
M ui/ui-foundation/api/restricted_current.txt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Clickable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Dialog.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Scroller.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/selection/Selectable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/selection/Toggleable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/semantics/FoundationSemanticsProperties.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/CardTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ScaffoldTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/SnackbarTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/SurfaceTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ripple/RippleIndicationTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/textfield/TextFieldScreenshotTest.kt
M ui/ui-material/src/main/java/androidx/ui/material/AppBar.kt
M ui/ui-material/src/main/java/androidx/ui/material/TextFieldImpl.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/AssertsTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/CallSemanticsActionTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/ErrorMessagesTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/FindersTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/PrintToStringTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/ScrollToTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/TextActionsTest.kt
M ui/ui-test/src/main/java/androidx/ui/test/Actions.kt
M ui/ui-test/src/main/java/androidx/ui/test/Filters.kt
M ui/ui-text/api/0.1.0-dev15.txt
M ui/ui-text/api/current.txt
M ui/ui-text/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-text/api/public_plus_experimental_current.txt
M ui/ui-text/api/restricted_0.1.0-dev15.txt
M ui/ui-text/api/restricted_current.txt
M ui/ui-text/src/commonMain/kotlin/androidx/ui/text/CoreTextField.kt
M ui/ui-text/src/commonMain/kotlin/androidx/ui/text/TextSemanticsProperties.kt
https://android-review.googlesource.com/1360099
Branch: androidx-master-dev
commit c60f33e229e31ab328ef6b59dab63b264954831c
Author: Alexandre Elias <aelias@google.com>
Date: Fri Jul 10 16:23:09 2020
Semantics no-op cleanups
Partly in response to lmr's broad code review, I did a pass of
superficial API/implementation cleanup. The main changes are:
- I changed each Boolean SemanticsProperty where false is equivalent to
not being present to take "Unit" instead. This is conceptually
clearer: it avoids questions like "can I cancel out a semantics from a
merged child by setting it to false?" Because "property = Unit" looks
weird, I also changed the style of these to "property()".
- I moved the Semantics id generator closer to where it's used, in
SemanticsModifierCore. I made it internal and an AtomicInt.
(Note that integer ids are heavily used in the Android
AccessibilityNodeInfo APIs so I can't simply remove them entirely.)
- I deleted dead code. Some examples include SemanticsHintOverrides,
a public API not connected to anything, and SemanticsPropertyKey
merge() open method which is never called. (In both cases I have
a different plan in mind for accessibility.)
Fixes: 145951226
Fixes: 145955412
Test: existing tests
Relnote: "Single-value semantics properties now use a calling style.
For example, 'semantics { hidden = true }' is now written as:
'semantics { hidden() }'."
Change-Id: Ic1afd12ea22c926babc9662f1804d80b33aa0cfc
M ui/integration-tests/benchmark/src/androidTest/java/androidx/ui/benchmark/test/LayoutNodeModifierBenchmark.kt
M ui/ui-core/api/0.1.0-dev15.txt
M ui/ui-core/api/current.txt
M ui/ui-core/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-core/api/public_plus_experimental_current.txt
M ui/ui-core/api/restricted_0.1.0-dev15.txt
M ui/ui-core/api/restricted_current.txt
M ui/ui-core/src/androidAndroidTest/kotlin/androidx/ui/graphics/vector/VectorTest.kt
M ui/ui-core/src/androidAndroidTest/kotlin/androidx/ui/semantics/SemanticsTests.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidActuals.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidComposeView.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidComposeViewAccessibilityDelegateCompat.kt
M ui/ui-core/src/androidMain/kotlin/androidx/ui/core/AndroidPopup.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/Expect.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsConfiguration.kt
D ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsHintOverrides.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsModifier.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsNode.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsOwner.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/core/semantics/SemanticsWrapper.kt
M ui/ui-core/src/commonMain/kotlin/androidx/ui/semantics/SemanticsProperties.kt
M ui/ui-foundation/api/0.1.0-dev15.txt
M ui/ui-foundation/api/current.txt
M ui/ui-foundation/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-foundation/api/public_plus_experimental_current.txt
M ui/ui-foundation/api/restricted_0.1.0-dev15.txt
M ui/ui-foundation/api/restricted_current.txt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Clickable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Dialog.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/Scroller.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/selection/Selectable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/selection/Toggleable.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/semantics/FoundationSemanticsProperties.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ButtonTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/CardTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/CheckboxScreenshotTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/RadioButtonScreenshotTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ScaffoldTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/SnackbarTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/SurfaceTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/ripple/RippleIndicationTest.kt
M ui/ui-material/src/androidTest/java/androidx/ui/material/textfield/TextFieldScreenshotTest.kt
M ui/ui-material/src/main/java/androidx/ui/material/AppBar.kt
M ui/ui-material/src/main/java/androidx/ui/material/TextFieldImpl.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/AssertsTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/CallSemanticsActionTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/ErrorMessagesTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/FindersTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/PrintToStringTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/ScrollToTest.kt
M ui/ui-test/src/androidTest/java/androidx/ui/test/TextActionsTest.kt
M ui/ui-test/src/main/java/androidx/ui/test/Actions.kt
M ui/ui-test/src/main/java/androidx/ui/test/Filters.kt
M ui/ui-text/api/0.1.0-dev15.txt
M ui/ui-text/api/current.txt
M ui/ui-text/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-text/api/public_plus_experimental_current.txt
M ui/ui-text/api/restricted_0.1.0-dev15.txt
M ui/ui-text/api/restricted_current.txt
M ui/ui-text/src/commonMain/kotlin/androidx/ui/text/CoreTextField.kt
M ui/ui-text/src/commonMain/kotlin/androidx/ui/text/TextSemanticsProperties.kt
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 7758f9f93eb72518a8625dca4d078b01df163e18
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Fri Nov 13 15:47:10 2020
Move widget.RichContentReceiverCompat to view.OnReceiveContentListener
This change only updates/moves the existing API. A follow-on change will
update the API.
Relnote: Moved widget.RichContentReceiverCompat to view.OnReceiveContentListener.
Bug: 173814913
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.widget.TextViewOnReceiveContentListenerTest
Test: ./gradlew :appcompat:appcompat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.appcompat.widget.AppCompatEditTextReceiveContentTest
Change-Id: Ifdab76f135e840a15430634a22e720947be4eecd
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/src/androidTest/AndroidManifest.xml
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentActivity.java
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentTest.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_edittext_receive_content_activity.xml
M appcompat/appcompat/src/androidTest/res/values/strings.xml
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/AppCompatEditText.java
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/lint-baseline.xml
M core/core/src/androidTest/AndroidManifest.xml
M core/core/src/androidTest/java/androidx/core/widget/ReceiveContentTestActivity.java
M core/core/src/androidTest/java/androidx/core/widget/TextViewOnReceiveContentListenerTest.java
M core/core/src/androidTest/res/layout/receive_content_activity.xml
M core/core/src/main/java/androidx/core/view/OnReceiveContentListener.java
M core/core/src/main/java/androidx/core/widget/TextViewOnReceiveContentListener.java
https://android-review.googlesource.com/1498950
Branch: androidx-master-dev
commit 7758f9f93eb72518a8625dca4d078b01df163e18
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Fri Nov 13 15:47:10 2020
Move widget.RichContentReceiverCompat to view.OnReceiveContentListener
This change only updates/moves the existing API. A follow-on change will
update the API.
Relnote: Moved widget.RichContentReceiverCompat to view.OnReceiveContentListener.
Bug: 173814913
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.widget.TextViewOnReceiveContentListenerTest
Test: ./gradlew :appcompat:appcompat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.appcompat.widget.AppCompatEditTextReceiveContentTest
Change-Id: Ifdab76f135e840a15430634a22e720947be4eecd
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/src/androidTest/AndroidManifest.xml
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentActivity.java
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentTest.java
M appcompat/appcompat/src/androidTest/res/layout/appcompat_edittext_receive_content_activity.xml
M appcompat/appcompat/src/androidTest/res/values/strings.xml
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/AppCompatEditText.java
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
M core/core/lint-baseline.xml
M core/core/src/androidTest/AndroidManifest.xml
M core/core/src/androidTest/java/androidx/core/widget/ReceiveContentTestActivity.java
M core/core/src/androidTest/java/androidx/core/widget/TextViewOnReceiveContentListenerTest.java
M core/core/src/androidTest/res/layout/receive_content_activity.xml
M core/core/src/main/java/androidx/core/view/OnReceiveContentListener.java
M core/core/src/main/java/androidx/core/widget/TextViewOnReceiveContentListener.java
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-master-dev
commit c2c4ba5ad132860829c09b542b63d7d71e404d7f
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Fri Nov 20 16:26:01 2020
Update OnReceiveContentListener API
Relnote: """Updated OnReceiveContentListener and related APIs:
* Updated OnReceiveContentListener so it can be set on any type of view
via ViewCompat.
* Removed getSupportedMimeTypes() from OnReceiveContentListener; now
MIME types are passed as an additional arg on the ViewCompat method
that sets the listener.
* Wrapped arguments to OnReceiveContentListener.onReceiveContent() in
an object.
* Added linkUri as a param to onReceiveContent() to ensure backwards
compatibility with the keyboard image API.
* Added a Bundle param to onReceiveContent() to ensure backwards
compatibility with the keyboard image API and to facilitate evolution
of the API in the future.
* Updated onReceiveContent() to return any content that was not
consumed, as a means to delegate to the default handling.
* Removed TextViewOnReceiveContentListener from the public API since
the default behavior can now be triggered by returning any unconsumed
content from the listener.
"""
Bug: 173814913
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.view.ContentInfoCompatTest
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.view.ViewCompatReceiveContentTest
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.widget.TextViewOnReceiveContentListenerTest
Test: ./gradlew :appcompat:appcompat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.appcompat.widget.AppCompatEditTextReceiveContentTest
Change-Id: Ib4616cb0d0cd9f8537b64de6fcc19b80442dc3fb
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentTest.java
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/AppCompatEditText.java
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
A core/core/src/androidTest/java/androidx/core/view/ContentInfoCompatTest.java
A core/core/src/androidTest/java/androidx/core/view/ViewCompatReceiveContentTest.java
M core/core/src/androidTest/java/androidx/core/widget/TextViewOnReceiveContentListenerTest.java
A core/core/src/main/java/androidx/core/view/ContentInfoCompat.java
M core/core/src/main/java/androidx/core/view/OnReceiveContentListener.java
A core/core/src/main/java/androidx/core/view/OnReceiveContentViewBehavior.java
M core/core/src/main/java/androidx/core/view/ViewCompat.java
M core/core/src/main/java/androidx/core/widget/TextViewOnReceiveContentListener.java
M core/core/src/main/res/values/ids.xml
https://android-review.googlesource.com/1510258
Branch: androidx-master-dev
commit c2c4ba5ad132860829c09b542b63d7d71e404d7f
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Fri Nov 20 16:26:01 2020
Update OnReceiveContentListener API
Relnote: """Updated OnReceiveContentListener and related APIs:
* Updated OnReceiveContentListener so it can be set on any type of view
via ViewCompat.
* Removed getSupportedMimeTypes() from OnReceiveContentListener; now
MIME types are passed as an additional arg on the ViewCompat method
that sets the listener.
* Wrapped arguments to OnReceiveContentListener.onReceiveContent() in
an object.
* Added linkUri as a param to onReceiveContent() to ensure backwards
compatibility with the keyboard image API.
* Added a Bundle param to onReceiveContent() to ensure backwards
compatibility with the keyboard image API and to facilitate evolution
of the API in the future.
* Updated onReceiveContent() to return any content that was not
consumed, as a means to delegate to the default handling.
* Removed TextViewOnReceiveContentListener from the public API since
the default behavior can now be triggered by returning any unconsumed
content from the listener.
"""
Bug: 173814913
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.view.ContentInfoCompatTest
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.view.ViewCompatReceiveContentTest
Test: ./gradlew :core:core:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.core.widget.TextViewOnReceiveContentListenerTest
Test: ./gradlew :appcompat:appcompat:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=androidx.appcompat.widget.AppCompatEditTextReceiveContentTest
Change-Id: Ib4616cb0d0cd9f8537b64de6fcc19b80442dc3fb
M appcompat/appcompat/api/current.txt
M appcompat/appcompat/api/public_plus_experimental_current.txt
M appcompat/appcompat/api/restricted_current.txt
M appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/AppCompatEditTextReceiveContentTest.java
M appcompat/appcompat/src/main/java/androidx/appcompat/widget/AppCompatEditText.java
M core/core/api/current.txt
M core/core/api/public_plus_experimental_current.txt
M core/core/api/restricted_current.txt
A core/core/src/androidTest/java/androidx/core/view/ContentInfoCompatTest.java
A core/core/src/androidTest/java/androidx/core/view/ViewCompatReceiveContentTest.java
M core/core/src/androidTest/java/androidx/core/widget/TextViewOnReceiveContentListenerTest.java
A core/core/src/main/java/androidx/core/view/ContentInfoCompat.java
M core/core/src/main/java/androidx/core/view/OnReceiveContentListener.java
A core/core/src/main/java/androidx/core/view/OnReceiveContentViewBehavior.java
M core/core/src/main/java/androidx/core/view/ViewCompat.java
M core/core/src/main/java/androidx/core/widget/TextViewOnReceiveContentListener.java
M core/core/src/main/res/values/ids.xml
si...@google.com <si...@google.com>
du...@google.com <du...@google.com>
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
commit fa9a50f143d3e751875066882adc7160e73a6800
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Wed Dec 02 11:47:29 2020
Test app for OnReceiveContentListener
Bug: 173814913
Test: Manually tested inserting an image via paste, drop, and from IME
Change-Id: I3cb2eb11dcf14e2172c3ef78abc4b8f7c463f2a9
A appcompat/integration-tests/receive-content-testapp/build.gradle
A appcompat/integration-tests/receive-content-testapp/lint-baseline.xml
A appcompat/integration-tests/receive-content-testapp/src/main/AndroidManifest.xml
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/Logcat.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MainActivity.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MyExecutors.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MyReceiver.java
A appcompat/integration-tests/receive-content-testapp/src/main/res/layout/activity_main.xml
A appcompat/integration-tests/receive-content-testapp/src/main/res/values/strings.xml
A appcompat/integration-tests/receive-content-testapp/src/main/res/values/styles.xml
M settings.gradle
https://android-review.googlesource.com/1555561
Branch: androidx-main
commit fa9a50f143d3e751875066882adc7160e73a6800
Author: Nikita Dubrovsky <dubrovsky@google.com>
Date: Wed Dec 02 11:47:29 2020
Test app for OnReceiveContentListener
Bug: 173814913
Test: Manually tested inserting an image via paste, drop, and from IME
Change-Id: I3cb2eb11dcf14e2172c3ef78abc4b8f7c463f2a9
A appcompat/integration-tests/receive-content-testapp/build.gradle
A appcompat/integration-tests/receive-content-testapp/lint-baseline.xml
A appcompat/integration-tests/receive-content-testapp/src/main/AndroidManifest.xml
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/Logcat.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MainActivity.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MyExecutors.java
A appcompat/integration-tests/receive-content-testapp/src/main/java/androidx/appcompat/demo/receivecontent/MyReceiver.java
A appcompat/integration-tests/receive-content-testapp/src/main/res/layout/activity_main.xml
A appcompat/integration-tests/receive-content-testapp/src/main/res/values/strings.xml
A appcompat/integration-tests/receive-content-testapp/src/main/res/values/styles.xml
M settings.gradle
jd...@gmail.com <jd...@gmail.com> #6
Apk
Description
* TextView.onTextContextMenuItem to handle insertion from the clipboard (paste action in the long-press toolbar menu)
* TextView.onCreateInputConnection to handle insertion from the IME
ViewCompat and AppCompatEditText should provide a single, unified listener API for apps to be able to accept content insertion regardless of the specific UI through which it comes in.