Assigned
Status Update
Comments
ad...@google.com <ad...@google.com>
ad...@google.com <ad...@google.com> #2
Issue with notification access code in core. Unclear where, but probably safe to assume NotificationCompat
.
su...@gmail.com <su...@gmail.com> #3
Note that this is a lint error and can be suppressed or lowered to warning-level on the client side. Lowering back to P2
.
ad...@google.com <ad...@google.com> #4
To find cause of issue, update
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
Description
Version used:
Theme used:
Devices/Android versions reproduced on: Emulator with API 24, Pixel 2 with API 28
- Description
From the docs, method CustomTabsIntent.Builder#enableUrlBarHiding will enable the url bar to hide as the user scrolls down on the page. However, it seems that this behaviour this enable by default when this method is not invoke to the builder.
- Relevant code to trigger the issue.
public static void launchUrl(@NonNull Context context, @NonNull String url) {
try {
new CustomTabsIntent.Builder()
.setToolbarColor(ContextCompat.getColor(context, R.color.primary))
.setShowTitle(true)
.build()
.launchUrl(context, Uri.parse(url));
} catch (ActivityNotFoundException e) {
Intents.get(context).openWebBrowser(url);
}
}
- A screenrecord or screenshots showing the issue (if UI related).
See attached screenshots. The image of 09:29:27 is after the CustomTabsIntent#launchUrl is invoked, 09:29:39 is after scroll (see that the url bar on the top is now hidden).
- Expected behaviour
If I understand the docs correctly, the url bar on the top should not hidden if CustomTabsIntent.Builder#enableUrlBarHiding is not called.