Skip to content

Commit

Permalink
Make attrs in FacebookButtonBase nullable
Browse files Browse the repository at this point in the history
Reviewed By: shuxinzhang

Differential Revision: D35798295

fbshipit-source-id: fd2dea85a1058dbdd77247a740cc10a6f4612869
  • Loading branch information
Mengxiao Lin authored and facebook-github-bot committed Apr 21, 2022
1 parent 6725e83 commit 90bd8ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions facebook-common/src/main/java/com/facebook/FacebookButtonBase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import com.facebook.internal.instrument.crashshield.AutoHandleExceptions
abstract class FacebookButtonBase
protected constructor(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int,
analyticsButtonCreatedEventName: String,
Expand Down Expand Up @@ -181,7 +181,7 @@ protected constructor(

protected open fun configureButton(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) {
Expand Down Expand Up @@ -212,7 +212,7 @@ protected constructor(

private fun parseBackgroundAttributes(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) {
Expand Down Expand Up @@ -243,7 +243,7 @@ protected constructor(
@SuppressLint("ResourceType")
private fun parseCompoundDrawableAttributes(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) {
Expand All @@ -270,7 +270,7 @@ protected constructor(

private fun parseContentAttributes(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) {
Expand All @@ -294,7 +294,7 @@ protected constructor(

private fun parseTextAttributes(
context: Context,
attrs: AttributeSet,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) {
Expand Down

0 comments on commit 90bd8ae

Please sign in to comment.