Update Provider.kt

This commit is contained in:
汐殇 2024-12-22 14:52:33 +08:00 committed by 汐殇
parent c513a198f4
commit 94c46a04c4
4 changed files with 8 additions and 5 deletions

View File

@ -17,7 +17,7 @@ data class Provider(
}
enum class VehicleType {
HTTP, File, Compatible
HTTP, File, Inline, Compatible
}
override fun writeToParcel(parcel: Parcel, flags: Int) {

View File

@ -29,6 +29,7 @@ fun Provider.type(context: Context): String {
val vehicle = when (vehicleType) {
Provider.VehicleType.HTTP -> context.getString(R.string.http)
Provider.VehicleType.File -> context.getString(R.string.file)
Provider.VehicleType.Inline -> context.getString(R.string.inline)
Provider.VehicleType.Compatible -> context.getString(R.string.compatible)
}

View File

@ -190,6 +190,7 @@
<string name="format_provider_type">%1$s(%2$s)</string>
<string name="rule">规则</string>
<string name="http">HTTP</string>
<string name="inline">内联</string>
<string name="compatible">兼容</string>
<string name="format_update_provider_failure">更新 %1$s: %2$s</string>
<string name="update_all">更新全部</string>
@ -248,7 +249,7 @@
<string name="geofile_unknown_db_format_message">只支持 %1$s 格式的 Geo 数据库</string>
<string name="geofile_imported">%1$s 已导入</string>
<string name="toast_profile_updated_complete">更新配置 %s 成功</string>
<string name="toast_profile_updated_failed">更新配置 %1$s 失败: %2$s</string>
<string name="toast_profile_updated_failed">更新配置 %1$s 失败%2$s</string>
<string name="external_control_activity">External Control</string>
<string name="external_control_started">Clash.Meta 服务已启动</string>
<string name="external_control_stopped">Clash.Meta 服务已停止</string>

View File

@ -278,6 +278,7 @@
<string name="format_provider_type">%1$s(%2$s)</string>
<string name="rule">Rule</string>
<string name="http">HTTP</string>
<string name="inline">Inline</string>
<string name="compatible">Compatible</string>
<string name="format_update_provider_failure">Update %1$s: %2$s</string>
<string name="update_all">Update All</string>