Преглед изворни кода

wip

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky пре 4 година
родитељ
комит
e70aedaae7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt

+ 1 - 1
src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt

@@ -40,7 +40,7 @@ class AvatarIT : AbstractIT() {
     @ScreenshotTest
     fun showAvatars() {
         val avatarRadius = targetContext.resources.getDimension(R.dimen.list_item_avatar_icon_radius)
-        val width = DisplayUtils.convertDpToPixel(2f * R.dimen.list_item_avatar_icon_radius, targetContext)
+        val width = DisplayUtils.convertDpToPixel(2 * avatarRadius, targetContext)
         val sut = testActivityRule.launchActivity(null)
         val fragment = AvatarTestFragment()