Skip to content

Commit

Permalink
Remove Nullable Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Kennyc1012 committed Feb 13, 2021
1 parent 30b8c03 commit 1a5c97d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/src/main/java/com/kennyc/view/MultiStateView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.annotation.LayoutRes
import androidx.annotation.Nullable
import com.kennyc.multistateview.R

class MultiStateView
Expand Down Expand Up @@ -91,7 +90,6 @@ class MultiStateView
* @param state The [com.kennyc.view.MultiStateView.ViewState] with to return the view for
* @return The [View] associated with the [com.kennyc.view.MultiStateView.ViewState], null if no view is present
*/
@Nullable
fun getView(state: ViewState): View? {
return when (state) {
ViewState.LOADING -> loadingView
Expand Down Expand Up @@ -294,7 +292,7 @@ class MultiStateView
*
* @param previousView The view that it was currently on
*/
private fun animateLayoutChange(@Nullable previousView: View?) {
private fun animateLayoutChange(previousView: View?) {
if (previousView == null) {
requireNotNull(getView(viewState)).visibility = View.VISIBLE
return
Expand Down

0 comments on commit 1a5c97d

Please sign in to comment.