simplify code of getting file

optimize animation
This commit is contained in:
BinTianqi
2024-05-11 15:34:10 +08:00
parent 8224211f3c
commit a8de0ed986
11 changed files with 82 additions and 59 deletions

View File

@@ -51,6 +51,7 @@ class PackageInstallerReceiver:BroadcastReceiver(){
else->R.string.unknown
}
Log.e("OwnDroid", intent.getIntExtra(EXTRA_STATUS,999).toString())
if(toastText!=999){Toast.makeText(context, toastText, Toast.LENGTH_SHORT).show()}
val text = context.getString(R.string.app_installer_status) + context.getString(toastText)
if(toastText!=999){Toast.makeText(context, text, Toast.LENGTH_SHORT).show()}
}
}