[Android] Fix for crash on capturing bottom toolbar state
This commit is contained in:
+4
-1
@@ -152,12 +152,15 @@ public class BraveScrollingBottomViewResourceFrameLayout
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("VisibleForTests")
|
||||
public void triggerBitmapCapture(boolean dropCachedBitmap) {
|
||||
synchronized (mCallbackController) {
|
||||
if (dropCachedBitmap) {
|
||||
getResourceAdapter().dropCachedBitmap();
|
||||
}
|
||||
getResourceAdapter().triggerBitmapCapture();
|
||||
if (!getResourceAdapter().getDirtyRect().isEmpty()) {
|
||||
getResourceAdapter().triggerBitmapCapture();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user