Run default Android Studio formatter on code
This commit is contained in:
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
|
||||
class DeepLinkActivity: Activity() {
|
||||
class DeepLinkActivity : Activity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@@ -16,4 +16,4 @@ class DeepLinkActivity: Activity() {
|
||||
startActivity(intent)
|
||||
finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,23 +29,23 @@ class TabsAnimator(val tabs: TabLayout) {
|
||||
|
||||
init {
|
||||
tabs.viewTreeObserver.addOnGlobalLayoutListener(
|
||||
object : ViewTreeObserver.OnGlobalLayoutListener {
|
||||
override fun onGlobalLayout() {
|
||||
if (tabs.height > 0) {
|
||||
tabs.viewTreeObserver.removeOnGlobalLayoutListener(this)
|
||||
object : ViewTreeObserver.OnGlobalLayoutListener {
|
||||
override fun onGlobalLayout() {
|
||||
if (tabs.height > 0) {
|
||||
tabs.viewTreeObserver.removeOnGlobalLayoutListener(this)
|
||||
|
||||
// Save the tabs default height.
|
||||
tabsHeight = tabs.height
|
||||
// Save the tabs default height.
|
||||
tabsHeight = tabs.height
|
||||
|
||||
// Now that we know the height, set the initial height.
|
||||
if (isLastStateShown) {
|
||||
setHeight(tabsHeight)
|
||||
} else {
|
||||
setHeight(0)
|
||||
// Now that we know the height, set the initial height.
|
||||
if (isLastStateShown) {
|
||||
setHeight(tabsHeight)
|
||||
} else {
|
||||
setHeight(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user