Refactor code of API

Rename Automation API to API
Add API section to READMEs
This commit is contained in:
BinTianqi
2024-12-21 17:11:41 +08:00
parent 6d531f8fd5
commit 873896ec10
14 changed files with 147 additions and 135 deletions

View File

@@ -82,7 +82,7 @@ class Receiver : DeviceAdminReceiver() {
val installAppDone = MutableStateFlow(false)
class PackageInstallerReceiver:BroadcastReceiver(){
class PackageInstallerReceiver: BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
val toastText = when(intent.getIntExtra(EXTRA_STATUS, 999)){
STATUS_PENDING_USER_ACTION -> R.string.status_pending_action