Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharkaboi committed Jul 18, 2021
1 parent bda296e commit 4492cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<p align="left">
<a href="https://github.com/Sharkaboi/LinkManager/actions?query=workflow%3A%22Gradle+Build%22" alt="Gradle Build">
<img src="https://github.com/Sharkaboi/LinkManager/workflows/Gradle%20Build/badge.svg?branch=master" /></a>
<a href="https://github.com/JetBrains/kotlin/releases/tag/v1.3.72" alt="Kotlin">
<img src="https://img.shields.io/badge/Kotlin-1.4.31-blue" /></a>
<a href="https://github.com/JetBrains/kotlin/releases/tag/v1.5.21" alt="Kotlin">
<img src="https://img.shields.io/badge/Kotlin-1.5.21-blue" /></a>
<a href="https://github.com/Sharkaboi/LinkManager/blob/master/LICENSE" alt="License">
<img src="https://img.shields.io/badge/License-MIT-orange" /></a>
<a href="https://github.com/Sharkaboi/LinkManager/graphs/contributors" alt="Contributors">
Expand All @@ -23,7 +23,8 @@ Can manage and share all links in one go.
* Room
* ViewBinding
* Coroutines
* Hilt beta
* Hilt
* Jetpack navigation and SafeArgs
* MDC Library
* KTX Extensions
* Preference fragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ fun MutableLiveData<UIState>.setError(error: Throwable?): MutableLiveData<UIStat
return this.apply { value = UIState.ERROR(error?.message ?: "An error occurred") }
}

fun MutableLiveData<UIState>.setError(error: String): MutableLiveData<UIState> {
return this.apply { value = UIState.ERROR(error) }
}

internal fun AppCompatActivity.showToast(message: String, length: Int = Toast.LENGTH_SHORT) =
Toast.makeText(this, message, length).show()

Expand Down

0 comments on commit 4492cc6

Please sign in to comment.