Skip to content

Commit

Permalink
Merge pull request #9 from skydoves/annoation/call-super
Browse files Browse the repository at this point in the history
Add CallSuper annotation for forcing to call super.onCreateView
  • Loading branch information
skydoves authored Apr 12, 2021
2 parents cb4a4b2 + 859d157 commit 06f9e46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingComponent
import androidx.databinding.DataBindingUtil
Expand Down Expand Up @@ -70,6 +71,7 @@ abstract class BindingBottomSheetDialogFragment<T : ViewDataBinding> constructor
/**
* Ensures the [binding] property should be executed and provide the inflated view which depends on [contentLayoutId].
*/
@CallSuper
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingComponent
import androidx.databinding.DataBindingUtil
Expand Down Expand Up @@ -70,6 +71,7 @@ abstract class BindingDialogFragment<T : ViewDataBinding> constructor(
/**
* Ensures the [binding] property should be executed and provide the inflated view which depends on [contentLayoutId].
*/
@CallSuper
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingComponent
import androidx.databinding.DataBindingUtil
Expand Down Expand Up @@ -70,6 +71,7 @@ abstract class BindingFragment<T : ViewDataBinding> constructor(
/**
* Ensures the [binding] property should be executed and provide the inflated view which depends on [contentLayoutId].
*/
@CallSuper
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down

0 comments on commit 06f9e46

Please sign in to comment.