Commit f4d01087 authored by Mygod's avatar Mygod

Fix #2202

parent 8889d8e0
...@@ -92,7 +92,7 @@ class MainActivity : AppCompatActivity(), ShadowsocksConnection.Callback, OnPref ...@@ -92,7 +92,7 @@ class MainActivity : AppCompatActivity(), ShadowsocksConnection.Callback, OnPref
val snackbar by lazy { findViewById<CoordinatorLayout>(R.id.snackbar) } val snackbar by lazy { findViewById<CoordinatorLayout>(R.id.snackbar) }
fun snackbar(text: CharSequence = "") = Snackbar.make(snackbar, text, Snackbar.LENGTH_LONG).apply { fun snackbar(text: CharSequence = "") = Snackbar.make(snackbar, text, Snackbar.LENGTH_LONG).apply {
view.translationY += fab.top + fab.translationY - snackbar.measuredHeight anchorView = fab
} }
private val customTabsIntent by lazy { private val customTabsIntent by lazy {
......
...@@ -49,7 +49,7 @@ mavenPublish { ...@@ -49,7 +49,7 @@ mavenPublish {
} }
dependencies { dependencies {
api 'androidx.core:core-ktx:1.0.1' api 'androidx.core:core-ktx:1.0.2'
api 'com.google.android.material:material:1.1.0-alpha06' api 'com.google.android.material:material:1.1.0-alpha06'
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
testImplementation "junit:junit:$junitVersion" testImplementation "junit:junit:$junitVersion"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment