Skip to content

Commit

Permalink
Merge pull request #42 from horaciocome1/bug-fixes-and-improvements-p…
Browse files Browse the repository at this point in the history
…art-IV

Bug fixes and improvements part iv
  • Loading branch information
horaciocome1 authored Aug 8, 2019
2 parents 6860aad + f1277cb commit 706057a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ android {
applicationId "io.github.horaciocome1.reaque"
minSdkVersion 16
targetSdkVersion 29
versionCode 10
versionName "1.3.0-rc-1"
versionCode 11
versionName "1.3.0-rc-2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class PostsViewModel(
fun share(fragment: ReadPostFragment, view: View, post: Post) {
view.isEnabled = false
dynamicLinks.buildShortDynamicLink(post) {
if (!fragment.isDetached) {
if (fragment.isVisible) {
fragment.startActivity(it)
sharesRepository.share(post) { view.isEnabled = true }
}
Expand Down

0 comments on commit 706057a

Please sign in to comment.