Revert "Fix android vpn issues"

This reverts commit 891977408e.
This commit is contained in:
chen08209
2024-07-17 14:51:52 +08:00
parent 891977408e
commit 2c3f4ae8a8

View File

@@ -174,19 +174,19 @@ class FlClashVpnService : VpnService() {
inner class LocalBinder : Binder() { inner class LocalBinder : Binder() {
fun getService(): FlClashVpnService = this@FlClashVpnService fun getService(): FlClashVpnService = this@FlClashVpnService
// override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean { override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean {
// try { try {
// val isSuccess = super.onTransact(code, data, reply, flags) val isSuccess = super.onTransact(code, data, reply, flags)
// if (!isSuccess) { if (!isSuccess) {
// CoroutineScope(Dispatchers.Main).launch { CoroutineScope(Dispatchers.Main).launch {
// GlobalState.getCurrentTitlePlugin()?.handleStop() GlobalState.getCurrentTitlePlugin()?.handleStop()
// } }
// } }
// return isSuccess return isSuccess
// } catch (e: RemoteException) { } catch (e: RemoteException) {
// throw e throw e
// } }
// } }
} }