android: my insertion stole downloadTarget's doc comment
Anchoring the new function on `fun downloadTarget` put it between that function and its own KDoc — so downloadTarget lost its doc and onUnmeteredNetwork gained a second one describing something else entirely. ktlint caught both halves. Anchor on a declaration and you land inside its documentation. Swept the rest of the tree for the same shape; nothing else.
This commit is contained in:
@@ -63,7 +63,6 @@ object AppUpdate {
|
|||||||
.setData(Uri.fromParts("package", context.packageName, null))
|
.setData(Uri.fromParts("package", context.packageName, null))
|
||||||
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
|
|
||||||
/** Where a download goes: app-private, so no storage permission is involved. */
|
|
||||||
/**
|
/**
|
||||||
* Whether this is a network to spend fifty-odd megabytes on without being asked.
|
* Whether this is a network to spend fifty-odd megabytes on without being asked.
|
||||||
*
|
*
|
||||||
@@ -80,6 +79,7 @@ object AppUpdate {
|
|||||||
return !manager.isActiveNetworkMetered
|
return !manager.isActiveNetworkMetered
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Where a download goes: app-private, so no storage permission is involved. */
|
||||||
fun downloadTarget(context: Context): File = File(context.cacheDir, "update.apk")
|
fun downloadTarget(context: Context): File = File(context.cacheDir, "update.apk")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user