File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
flexbox/src/androidTest/java/com/google/android/flexbox Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package com.google.android.flexbox
1919import android.view.View
2020import android.widget.CheckBox
2121import android.widget.TextView
22+ import androidx.core.widget.CompoundButtonCompat
2223import androidx.test.rule.ActivityTestRule
2324import androidx.test.runner.AndroidJUnit4
2425import com.google.android.flexbox.test.FlexboxTestActivity
@@ -428,7 +429,7 @@ class FlexboxHelperTest {
428429
429430 // CompoundButton will use its ButtonDrawable minWidth to determine its size when
430431 // no minimum width is set on it.
431- val drawableMinWidth = view1.buttonDrawable !! .minimumWidth
432+ val drawableMinWidth = CompoundButtonCompat .getButtonDrawable(view1) !! .minimumWidth
432433 val expectedTextWidth = containerWidth - drawableMinWidth
433434 assertThat(view1.measuredWidth, `is `(drawableMinWidth))
434435 assertThat(view2.measuredWidth, `is `(expectedTextWidth))
You can’t perform that action at this time.
0 commit comments