pull/977/head
gedoor 4 years ago
parent c5b47dd555
commit 89e8976217
  1. 14
      app/src/main/java/io/legado/app/ui/association/FileAssociationActivity.kt

@ -1,14 +1,10 @@
package io.legado.app.ui.association package io.legado.app.ui.association
import android.content.Intent
import android.os.Bundle import android.os.Bundle
import androidx.activity.viewModels import androidx.activity.viewModels
import io.legado.app.base.VMBaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Theme import io.legado.app.constant.Theme
import io.legado.app.databinding.ActivityTranslucenceBinding 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 import io.legado.app.utils.toastOnUi
class FileAssociationActivity : 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>()
}
} }

Loading…
Cancel
Save