|
|
@ -14,6 +14,7 @@ import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
import io.legado.app.utils.openUrl |
|
|
|
import io.legado.app.utils.openUrl |
|
|
|
import io.legado.app.utils.sendMail |
|
|
|
import io.legado.app.utils.sendMail |
|
|
|
import io.legado.app.utils.sendToClip |
|
|
|
import io.legado.app.utils.sendToClip |
|
|
|
|
|
|
|
import io.legado.app.utils.toast |
|
|
|
|
|
|
|
|
|
|
|
class AboutFragment : PreferenceFragmentCompat() { |
|
|
|
class AboutFragment : PreferenceFragmentCompat() { |
|
|
|
|
|
|
|
|
|
|
@ -93,10 +94,13 @@ class AboutFragment : PreferenceFragmentCompat() { |
|
|
|
Uri.parse("mqqopensdkapi://bizAgent/qm/qr?url=http%3A%2F%2Fqm.qq.com%2Fcgi-bin%2Fqm%2Fqr%3Ffrom%3Dapp%26p%3Dandroid%26k%3D$key") |
|
|
|
Uri.parse("mqqopensdkapi://bizAgent/qm/qr?url=http%3A%2F%2Fqm.qq.com%2Fcgi-bin%2Fqm%2Fqr%3Ffrom%3Dapp%26p%3Dandroid%26k%3D$key") |
|
|
|
// 此Flag可根据具体产品需要自定义,如设置,则在加群界面按返回,返回手Q主界面,不设置,按返回会返回到呼起产品界面 |
|
|
|
// 此Flag可根据具体产品需要自定义,如设置,则在加群界面按返回,返回手Q主界面,不设置,按返回会返回到呼起产品界面 |
|
|
|
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) |
|
|
|
// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) |
|
|
|
return kotlin.runCatching { |
|
|
|
kotlin.runCatching { |
|
|
|
startActivity(intent) |
|
|
|
startActivity(intent) |
|
|
|
true |
|
|
|
return true |
|
|
|
}.getOrDefault(false) |
|
|
|
}.onFailure { |
|
|
|
|
|
|
|
toast("添加失败,请手动添加") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |