From a48b034a94b11346b6af5b74d034e623599479c8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 26 Aug 2026 08:43:42 -0400 Subject: [PATCH] android: my insertion stole downloadTarget's doc comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .../app/src/main/java/com/fabledsword/thoughtsync/AppUpdate.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/fabledsword/thoughtsync/AppUpdate.kt b/android/app/src/main/java/com/fabledsword/thoughtsync/AppUpdate.kt index 1a906e5..88043da 100644 --- a/android/app/src/main/java/com/fabledsword/thoughtsync/AppUpdate.kt +++ b/android/app/src/main/java/com/fabledsword/thoughtsync/AppUpdate.kt @@ -63,7 +63,6 @@ object AppUpdate { .setData(Uri.fromParts("package", context.packageName, null)) .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. * @@ -80,6 +79,7 @@ object AppUpdate { 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") /**