2024-04-30 23:38:49 +08:00
|
|
|
package com.follow.clash
|
|
|
|
|
|
|
|
|
|
import android.app.Activity
|
|
|
|
|
import android.os.Bundle
|
2024-10-27 16:59:23 +08:00
|
|
|
import com.follow.clash.extensions.wrapAction
|
2024-04-30 23:38:49 +08:00
|
|
|
|
|
|
|
|
class TempActivity : Activity() {
|
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
|
|
super.onCreate(savedInstanceState)
|
2024-09-20 14:32:57 +08:00
|
|
|
when (intent.action) {
|
2024-12-06 22:35:28 +08:00
|
|
|
wrapAction("START") -> {
|
2025-01-13 19:08:17 +08:00
|
|
|
GlobalState.handleStart()
|
2024-12-06 22:35:28 +08:00
|
|
|
}
|
|
|
|
|
|
2024-10-27 16:59:23 +08:00
|
|
|
wrapAction("STOP") -> {
|
|
|
|
|
GlobalState.handleStop()
|
2024-09-20 14:32:57 +08:00
|
|
|
}
|
|
|
|
|
|
2024-10-27 16:59:23 +08:00
|
|
|
wrapAction("CHANGE") -> {
|
2025-01-13 19:08:17 +08:00
|
|
|
GlobalState.handleToggle()
|
2024-09-20 14:32:57 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-04-30 23:38:49 +08:00
|
|
|
finishAndRemoveTask()
|
|
|
|
|
}
|
|
|
|
|
}
|