mirror of
https://github.com/Michatec/michas-droid.git
synced 2026-05-31 02:12:42 +02:00
- Updated the ScreenActivity.kt
- Some settings updated - Fix some bugs
This commit is contained in:
@@ -125,7 +125,7 @@ abstract class ScreenActivity: FragmentActivity() {
|
||||
|
||||
private fun replaceFragment(fragment: Fragment, open: Boolean?) {
|
||||
if (open != null) {
|
||||
currentFragment?.view?.translationZ = (if (open) Int.MIN_VALUE else Int.MAX_VALUE).toFloat()
|
||||
currentFragment?.view?.translationZ = (if (open) -1f else 1f)
|
||||
}
|
||||
supportFragmentManager
|
||||
.beginTransaction()
|
||||
|
||||
Reference in New Issue
Block a user