Skip to content

Commit 600eb59

Browse files
author
Marc Mulcahy
committed
Fix Android build.
1 parent 3fe0cdf commit 600eb59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import android.view.ViewParent;
1212
import androidx.core.view.ViewCompat;
1313

14+
import java.util.ArrayList;
1415
import java.util.HashMap;
1516

1617
import com.facebook.react.R;
@@ -187,7 +188,7 @@ private void updateViewContentDescription(@Nonnull T view) {
187188
} else if (state.equals(STATE_BUSY) && value.getType() == ReadableType.Boolean && value.asBoolean()) {
188189
components.add(view.getContext().getString(R.string.state_busy_description));
189190
} else if (state.equals(STATE_EXPANDED) && value.getType() == ReadableType.Boolean) {
190-
components.add(view.getContext().getString(val.asBoolean() ? R.string.state_expanded_description : R.string.state_collapsed_description));
191+
components.add(view.getContext().getString(value.asBoolean() ? R.string.state_expanded_description : R.string.state_collapsed_description));
191192
}
192193
}
193194
}

0 commit comments

Comments
 (0)