Unverified Commit 78626271 authored by Jonathan Almeida's avatar Jonathan Almeida
Browse files

Close #8181: Expose requestScreenshot on BrowserThumbnails

parent 96565fa2
......@@ -52,8 +52,11 @@ class BrowserThumbnails(
}
}
@VisibleForTesting
internal fun requestScreenshot() {
/**
* Requests a screenshot to be taken that can be observed from [BrowserStore] if successful. The request can fail
* if the device is low on memory or if there is no tab attached to the [EngineView].
*/
fun requestScreenshot() {
if (!isLowOnMemory()) {
engineView.captureThumbnail {
val bitmap = it ?: return@captureThumbnail
......
......@@ -24,6 +24,12 @@ permalink: /changelog/
* **feature-app-links**
* Fixed [issue #8169](https://github.com/mozilla-mobile/android-components/issues/8169) App links dialog will now call `showNow` to immediately show the dialog.
* **browser-thumbnails**
* Exposed `BrowserThumbnail.requestThumbnail` API for consumers.
* **browser-engine-gecko-nightly**
* Added `onPaintStatusReset` when a session's paint has been reset.
# 55.0.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v54.0.0...v55.0.0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment