File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
java/com/duckduckgo/app/tabs/ui Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -403,10 +403,18 @@ class TabSwitcherAdapter(
403
403
try {
404
404
glide.load(cachedWebViewPreview)
405
405
.transition(DrawableTransitionOptions .withCrossFade())
406
- .transform(
407
- fitAndClipBottom(),
408
- RoundedCorners (tabPreview.context.resources.getDimensionPixelSize(CommonR .dimen.smallShapeCornerRadius)),
409
- )
406
+ .let {
407
+ if (isVisualExperimentEnabled) {
408
+ it.transform(
409
+ fitAndClipBottom(),
410
+ RoundedCorners (tabPreview.context.resources.getDimensionPixelSize(CommonR .dimen.smallShapeCornerRadius)),
411
+ )
412
+ } else {
413
+ it.transform(
414
+ fitAndClipBottom(),
415
+ )
416
+ }
417
+ }
410
418
.into(tabPreview)
411
419
} catch (e: Exception ) {
412
420
logcat(ERROR ) { " Error loading tab preview for ${tab.tabId} : ${e.message} " }
Original file line number Diff line number Diff line change 100
100
android : layout_height =" @dimen/gridItemPreviewHeightNew"
101
101
android : layout_marginTop =" 6dp"
102
102
android : importantForAccessibility =" no"
103
+ android : scaleType =" center"
103
104
app : layout_constraintBottom_toBottomOf =" parent"
104
105
app : layout_constraintEnd_toEndOf =" parent"
105
106
app : layout_constraintStart_toStartOf =" parent"
You can’t perform that action at this time.
0 commit comments