Run default Android Studio formatter on code

This commit is contained in:
arkon
2020-02-17 17:23:37 -05:00
parent a1fadce7c6
commit 3ecc883944
109 changed files with 640 additions and 585 deletions
@@ -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)
}
}
}
}
}
)
}