mirror of
https://github.com/KitsunePie/AppErrorsTracking.git
synced 2025-09-04 02:05:16 +08:00
Fix code style in FunctionFactory
This commit is contained in:
@@ -309,7 +309,7 @@ fun Context.openSelfSetting(packageName: String = this.packageName) = runCatchin
|
|||||||
action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
|
action = Settings.ACTION_APPLICATION_DETAILS_SETTINGS
|
||||||
data = Uri.fromParts("package", packageName, null)
|
data = Uri.fromParts("package", packageName, null)
|
||||||
})
|
})
|
||||||
}.onFailure { toast(msg = "Cannot open '$packageName'") }
|
}.onFailure { toast(msg = "Cannot open \"$packageName\"") }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动系统浏览器
|
* 启动系统浏览器
|
||||||
@@ -325,7 +325,7 @@ fun Context.openBrowser(url: String, packageName: String = "") = runCatching {
|
|||||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||||
})
|
})
|
||||||
}.onFailure {
|
}.onFailure {
|
||||||
if (packageName.isNotBlank()) snake(msg = "Cannot start '$packageName'")
|
if (packageName.isNotBlank()) snake(msg = "Cannot start \"$packageName\"")
|
||||||
else snake(msg = "Start system browser failed")
|
else snake(msg = "Start system browser failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user