commit | 873e69c103480c501fafdacf06e90febadeeff9c | [log] [tgz] |
---|---|---|
author | Pavel Shmakov <pshmakov@google.com> | Tue Oct 23 10:18:08 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Oct 24 14:23:05 2018 |
tree | b023b822e045b900ae7fbd2d89e48e6af309fe85 | |
parent | 746256f808a443831568e659c7e54143962d6b9b [diff] |
Add a method to retrieve both id and bitmap for TWA notification small icon Depending on Android version we may need either resource id or a bitmap decoded from it to display status bar icon of TWA notification. We also need decoded bitmap for the small icon displayed in the content of notification. Currently decoding is done insecurely on Chrome side. Added a method getSmallIconBitmap that returns a bitmap decoded on the client's side. Third party apps can override getSmallIconId, but not getSmallIconBitmap. Bug: 892674 Change-Id: I3c3f1ea67b4df5815a3f905a66e0fa659e128c71 Reviewed-on: https://chromium-review.googlesource.com/c/1278199 Commit-Queue: Pavel Shmakov <pshmakov@chromium.org> Reviewed-by: Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by: Peter Conn <peconn@chromium.org>
Chrome Custom Tabs provides a way for an application to customize and interact with a Chrome Activity
on Android. This makes the web content feel like being a part of the application, while retaining the full functionality and performance of a complete web browser.
Using Custom Tabs should be easy. This repository hosts examples and in-depth documentation. The examples are importable as projects into the Android Studio.
We want to hear your feedback! Please create bugs and start discussions using this template. Please use the template for any issues related to the Custom Tabs APIs, their implementation in Chrome, the examples in this repository, and related functionality of the Android Support Library.
Note: we know that the GitHub issue tracker is great! However, since Custom Tabs is mostly driven by Chrome developers, and we want to keep all bugs in one place, we prefer the Chromium issue tracker at the moment.
We accept contributions to Custom Tabs examples and documentation. Please see our contributor's guide.