Skip to content

Commit

Permalink
0.4.23
Browse files Browse the repository at this point in the history
  • Loading branch information
A.Badakhshan committed Nov 13, 2021
1 parent 3dfb060 commit 7715ba0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion whygoogle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdkVersion 17
targetSdkVersion 30
versionCode 1
versionName "0.4.22"
versionName "0.4."
}
buildFeatures {
viewBinding true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ abstract class SwipableWhyGoogleActivity<T : ViewBinding> : AppCompatActivity(),
fragmentStack.lastOrNull()?.onBackToFragment()
onTopFragmentChanged(fragmentStack.last())
}
if (lastKnownFragment == fragmentStack.lastOrNull())
return@onPageSettled
fragmentStack.lastOrNull()?.onEnterAnimationEnded()
lastKnownFragment = fragmentStack.lastOrNull()
if (lastKnownFragment != fragmentStack.lastOrNull()) {
fragmentStack.lastOrNull()?.onEnterAnimationEnded()
lastKnownFragment = fragmentStack.lastOrNull()
}
transactioning = false
executeLastTransaction()
}
Expand Down Expand Up @@ -118,6 +118,8 @@ abstract class SwipableWhyGoogleActivity<T : ViewBinding> : AppCompatActivity(),
private var transactions = ArrayList<SimpleCallBack>()

private fun executeLastTransaction() {
if (transactions.isEmpty())
return
synchronized(this) {
if (transactioning)
return@synchronized
Expand Down

0 comments on commit 7715ba0

Please sign in to comment.