diff --git a/app/build.gradle b/app/build.gradle index 0589353f9..1d1b83bb5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -182,7 +182,8 @@ dependencies { //网络 implementation('com.squareup.okhttp3:okhttp:4.9.1') - implementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar'])) + appImplementation(fileTree(dir: 'cronetlib', include: ['*.jar', '*.aar'])) + googleImplementation 'com.google.android.gms:play-services-cronet:17.0.0' //Glide implementation('com.github.bumptech.glide:glide:4.12.0') diff --git a/app/src/main/java/io/legado/app/ui/login/SourceLoginActivity.kt b/app/src/main/java/io/legado/app/ui/login/SourceLoginActivity.kt index 5042ee624..cbd7ebe23 100644 --- a/app/src/main/java/io/legado/app/ui/login/SourceLoginActivity.kt +++ b/app/src/main/java/io/legado/app/ui/login/SourceLoginActivity.kt @@ -3,16 +3,16 @@ package io.legado.app.ui.login import android.os.Bundle import androidx.activity.viewModels import io.legado.app.R -import io.legado.app.base.BaseActivity +import io.legado.app.base.VMBaseActivity import io.legado.app.data.entities.BookSource import io.legado.app.databinding.ActivitySourceLoginBinding import io.legado.app.utils.viewbindingdelegate.viewBinding -class SourceLoginActivity : BaseActivity() { +class SourceLoginActivity : VMBaseActivity() { override val binding by viewBinding(ActivitySourceLoginBinding::inflate) - private val viewModel by viewModels() + override val viewModel by viewModels() override fun onActivityCreated(savedInstanceState: Bundle?) { intent.getStringExtra("sourceUrl")?.let { diff --git a/app/src/main/res/layout/activity_source_login.xml b/app/src/main/res/layout/activity_source_login.xml index 365277d30..ea051953b 100644 --- a/app/src/main/res/layout/activity_source_login.xml +++ b/app/src/main/res/layout/activity_source_login.xml @@ -3,6 +3,7 @@ android:id="@+id/fl_fragment" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical"> + android:orientation="vertical" + android:background="@color/transparent50"> \ No newline at end of file diff --git a/app/src/main/res/layout/activity_translucence.xml b/app/src/main/res/layout/activity_translucence.xml index 946439b5d..143f44d2a 100644 --- a/app/src/main/res/layout/activity_translucence.xml +++ b/app/src/main/res/layout/activity_translucence.xml @@ -1,8 +1,8 @@ \ No newline at end of file