|
|
|
@ -1,14 +1,10 @@ |
|
|
|
|
package io.legado.app.ui.association |
|
|
|
|
|
|
|
|
|
import android.content.Intent |
|
|
|
|
import android.os.Bundle |
|
|
|
|
import androidx.activity.viewModels |
|
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
|
import io.legado.app.constant.Theme |
|
|
|
|
import io.legado.app.databinding.ActivityTranslucenceBinding |
|
|
|
|
import io.legado.app.ui.main.MainActivity |
|
|
|
|
import io.legado.app.utils.startActivity |
|
|
|
|
|
|
|
|
|
import io.legado.app.utils.toastOnUi |
|
|
|
|
|
|
|
|
|
class FileAssociationActivity : |
|
|
|
@ -39,14 +35,4 @@ class FileAssociationActivity : |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { |
|
|
|
|
super.onActivityResult(requestCode, resultCode, data) |
|
|
|
|
finish() |
|
|
|
|
//返回后直接跳转到主页面 |
|
|
|
|
gotoMainActivity() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun gotoMainActivity() { |
|
|
|
|
startActivity<MainActivity>() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|